1
0
Fork 1

Fix double-remove crash

(cherry picked from commit edcd8fa92d74f1f89c9440d9e1b10bdf5cea4fbe)
This commit is contained in:
Stephen Paul Weber 2024-10-15 10:32:00 -05:00 committed by Arne
parent 5ac185a167
commit 211b1eab80

View file

@ -756,9 +756,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
if (asReaction != null) {
reactions.put(asReaction.first, asReaction.second);
iterator.remove();
}
if (m.wasMergedIntoPrevious(xmppConnectionService) || (m.getSubject() != null && !m.isOOb() && (m.getRawBody() == null || m.getRawBody().length() == 0)) || (getLockThread() && !extraIds.contains(m.replyId()) && (mthread == null || !mthread.getContent().equals(getThread() == null ? "" : getThread().getContent())))) {
} else if (m.wasMergedIntoPrevious(xmppConnectionService) || (m.getSubject() != null && !m.isOOb() && (m.getRawBody() == null || m.getRawBody().length() == 0)) || (getLockThread() && !extraIds.contains(m.replyId()) && (mthread == null || !mthread.getContent().equals(getThread() == null ? "" : getThread().getContent())))) {
iterator.remove();
} else if (getLockThread() && mthread != null) {
final var reply = m.getReply();