mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge branch 'release-3.2' into 'master'
This commit is contained in:
@@ -54,12 +54,13 @@ class EmojiStore extends EventEmitter {
|
||||
this.addCustomEmoji(emoji);
|
||||
}
|
||||
|
||||
// add custom emojis to the map first so that they can't override system ones
|
||||
this.emojis = new Map([...this.customEmojis, ...this.systemEmojis]);
|
||||
this.updateEmojiMap();
|
||||
}
|
||||
|
||||
addCustomEmoji(emoji) {
|
||||
this.customEmojis.set(emoji.name, emoji);
|
||||
|
||||
// this doesn't update this.emojis, but it's only called by setCustomEmojis which does that afterwards
|
||||
}
|
||||
|
||||
removeCustomEmoji(id) {
|
||||
@@ -69,6 +70,13 @@ class EmojiStore extends EventEmitter {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.updateEmojiMap();
|
||||
}
|
||||
|
||||
updateEmojiMap() {
|
||||
// add custom emojis to the map first so that they can't override system ones
|
||||
this.emojis = new Map([...this.customEmojis, ...this.systemEmojis]);
|
||||
}
|
||||
|
||||
getSystemEmojis() {
|
||||
|
||||
Reference in New Issue
Block a user