mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-30 14:37:59 +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:
parent
eb31479913
commit
d07d46bbdc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue