Improved code

This commit is contained in:
2019-09-10 12:28:09 +02:00
parent 299619bb79
commit e212d5e7c4
4 changed files with 6 additions and 30 deletions
@@ -290,9 +290,9 @@ export class ChatBox implements AfterViewInit, OnDestroy {
this.open();
}
}
onMouseEnter(event: MouseEvent) {
onMouseEnterEmojiButton(event: MouseEvent) {
if (!event.target) return;
const emoji = _.sample(emojis) || emojis[0];
const emoji = _.sample(emojis)!;
this.btnEmoji = emoji.names[0];
}
toggleChatType() {