* [Glitch] Fix crash when failing to load emoji picker
Port
bd3420b1398c4c4ab2e2f2850b6dd6eaff0d361b to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
* [Glitch] Remove duplicate frequently used emojis
Port
98146281e1beaf994710b13ef70f6224e8588cba to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Harmon <Harmon758@gmail.com>
this.setState({ loading: false });
}).catch(() => {
- this.setState({ loading: false });
+ this.setState({ loading: false, active: false });
});
}
.toArray();
if (emojis.length < DEFAULTS.length) {
- emojis = emojis.concat(DEFAULTS.slice(0, DEFAULTS.length - emojis.length));
+ let uniqueDefaults = DEFAULTS.filter(emoji => !emojis.includes(emoji));
+ emojis = emojis.concat(uniqueDefaults.slice(0, DEFAULTS.length - emojis.length));
}
return emojis;