Fix duplicate emoji entries in compose emoji picker.

We were incorrectly appending all the emoji into the emoji picker
every time it was opened, rather than just once.

Note by tabbott: Arguably this isn't the right fix, in that it might
be better to just render the emoji picker once at the beginning.  But
this definitely fixes the bug.

Fixes #3952.
This commit is contained in:
tejaskasetty 2017-03-20 19:45:49 +05:30 committed by Tim Abbott
parent 29412cd06b
commit 02bd5bedce
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ function render_emoji_popover() {
realm_emoji: emoji.realm_emojis,
});
}());
$('.emoji_popover').empty();
$('.emoji_popover').append(content);
$('.drag').show();