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) {
|
@action hydrate(data: ISettings) {
|
||||||
Object.keys(data).forEach(
|
Object.keys(data).forEach((key) => {
|
||||||
(key) =>
|
const val = (data as any)[key];
|
||||||
typeof (data as any)[key] !== "undefined" &&
|
if (typeof val !== "undefined") {
|
||||||
this.data.set(key, (data as any)[key]),
|
if (key === "appearance:emoji") {
|
||||||
);
|
setGlobalEmojiPack(val);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.data.set(key, val);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user