1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

[chat2] Fix resource unlock condition

If the resource of the updated presence is equal to the currently
locked resource, then no further action is required.

Thanks to Pedro Oliveira for reporting this.

Reported-by: Pedro Oliveira <kanytu@gmail.com>
This commit is contained in:
Florian Schmaus 2021-03-25 08:22:12 +01:00
parent eb31479913
commit d07d46bbdc

View file

@ -161,7 +161,7 @@ public final class ChatManager extends Manager {
} }
final EntityFullJid fullFrom = from.asEntityFullJidIfPossible(); final EntityFullJid fullFrom = from.asEntityFullJidIfPossible();
if (!chat.lockedResource.equals(fullFrom)) { if (chat.lockedResource.equals(fullFrom)) {
return; return;
} }