mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
FIX: Emoji pack now persists on reload
This commit is contained in:
@@ -66,11 +66,16 @@ export default class Settings
|
||||
}
|
||||
|
||||
@action hydrate(data: ISettings) {
|
||||
Object.keys(data).forEach(
|
||||
(key) =>
|
||||
typeof (data as any)[key] !== "undefined" &&
|
||||
this.data.set(key, (data as any)[key]),
|
||||
);
|
||||
Object.keys(data).forEach((key) => {
|
||||
const val = (data as any)[key];
|
||||
if (typeof val !== "undefined") {
|
||||
if (key === "appearance:emoji") {
|
||||
setGlobalEmojiPack(val);
|
||||
}
|
||||
|
||||
this.data.set(key, val);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user