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 <[email protected]>

* Update web_src/js/index.js

Co-authored-by: Lauris BH <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: zeripath <[email protected]>
This commit is contained in:
L0veSunshine
2020-05-20 15:41:33 -04:00
committed by GitHub
co-authored by Lauris BH techknowlogick zeripath
parent 7c287b9f0b
commit b6d01ccdca
+1 -1
View File
@@ -239,7 +239,7 @@ function initReactionSelector(parent) {
if (resp && (resp.html || resp.empty)) {
const content = $(vm).closest('.content');
let react = content.find('.segment.reactions');
if (!resp.empty && react.length > 0) {
if ((!resp.empty || resp.html === '') && react.length > 0) {
react.remove();
}
if (!resp.empty) {