Skip to content

Commit b6d01cc

Browse files
L0veSunshinelafrikstechknowlogickzeripath
authored
Fix the bug that the emoji does not disappear (#11489)
* Fix the bug that the emoticon does not disappear * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
1 parent 7c287b9 commit b6d01cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function initReactionSelector(parent) {
239239
if (resp && (resp.html || resp.empty)) {
240240
const content = $(vm).closest('.content');
241241
let react = content.find('.segment.reactions');
242-
if (!resp.empty && react.length > 0) {
242+
if ((!resp.empty || resp.html === '') && react.length > 0) {
243243
react.remove();
244244
}
245245
if (!resp.empty) {

0 commit comments

Comments
 (0)