[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
1 changed files with 1 additions and 1 deletions

View File

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