mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-4700] Fixed issue with clearing search index state (#8686)
* fixed issue with clearing search index state * Decrease snap description character length to reach 128 limit (#8687) * clear user index before account is totally cleaned up * [AC-2436] Fix flashing unassigned items banner (#8689) * Fix flashing banner for users who shouldn't see it * Emit the right value the first time * simplify further * restore comment * added logout clear on option * removed redundant clear index from logout --------- Co-authored-by: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,7 @@ export const LUNR_SEARCH_INDEX = new UserKeyDefinition<SerializedLunrIndex>(
|
||||
"searchIndex",
|
||||
{
|
||||
deserializer: (obj: Jsonify<SerializedLunrIndex>) => obj,
|
||||
clearOn: ["lock"],
|
||||
clearOn: ["lock", "logout"],
|
||||
},
|
||||
);
|
||||
|
||||
@@ -48,7 +48,7 @@ export const LUNR_SEARCH_INDEXED_ENTITY_ID = new UserKeyDefinition<IndexedEntity
|
||||
"searchIndexedEntityId",
|
||||
{
|
||||
deserializer: (obj: Jsonify<IndexedEntityId>) => obj,
|
||||
clearOn: ["lock"],
|
||||
clearOn: ["lock", "logout"],
|
||||
},
|
||||
);
|
||||
|
||||
@@ -61,7 +61,7 @@ export const LUNR_SEARCH_INDEXING = new UserKeyDefinition<boolean>(
|
||||
"isIndexing",
|
||||
{
|
||||
deserializer: (obj: Jsonify<boolean>) => obj,
|
||||
clearOn: ["lock"],
|
||||
clearOn: ["lock", "logout"],
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user