Skip to content

Commit

Permalink
Fixed appending message after retraction/clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 7, 2024
1 parent fb6e58d commit b02b5ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/chatview/psi/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ function psiThemeAdapter(chat) {

stopGroupping : function() {
if (shared.prevGrouppingData) {
shared.prevGrouppingData.nextEl.parentNode.removeChild(shared.prevGrouppingData.nextEl)
if (shared.prevGrouppingData.nextEl) {
shared.prevGrouppingData.nextEl.parentNode.removeChild(shared.prevGrouppingData.nextEl);
}
shared.prevGrouppingData = null;
}
},
Expand Down
1 change: 1 addition & 0 deletions themes/chatview/psi/bubble/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
return false;
} else if (shared.cdata.type == "msgretract") {
retractMessage(shared.cdata.targetid);
shared.stopGroupping(); // an ugly hack to not group with not existing. TODO: better solution
}
},
varHandlers : {
Expand Down

0 comments on commit b02b5ec

Please sign in to comment.