Attachment Modal: Fix opening (#2401)

This commit is contained in:
Alexander Zinchuk 2023-01-28 02:16:21 +01:00
parent 9f214afb35
commit 187af7709f

View File

@ -331,6 +331,10 @@ function unsafeMigrateCache(cached: GlobalState, initialState: GlobalState) {
cached.availableReactions = cached.availableReactions
.map((r) => ({ ...r, reaction: { emoticon: r.reaction as unknown as string } }));
}
if (!cached.attachmentSettings) {
cached.attachmentSettings = initialState.attachmentSettings;
}
}
function updateCache() {