Skip to content

Commit

Permalink
Fix pm bug in eb5da94
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 19, 2024
1 parent 38cc560 commit 7bce655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/MLMessageProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ +(MLMessage* _Nullable) processMessage:(XMPPMessage*) messageNode andOuterMessag
//ignore muc PMs (after discussion with holger we don't want to support that)
if(
![messageNode check:@"/<type=groupchat>"] &&
([messageNode check:@"{http://jabber.org/protocol/muc#user}x"] || messageNode.fromResource != nil) &&
[messageNode check:@"{http://jabber.org/protocol/muc#user}x"] &&
![messageNode check:@"{http://jabber.org/protocol/muc#user}x/invite"] &&
[messageNode check:@"body#"]
)
Expand Down Expand Up @@ -247,7 +247,7 @@ +(MLMessage* _Nullable) processMessage:(XMPPMessage*) messageNode andOuterMessag
}


if((possiblyUnknownContact.isMuc || [messageNode check:@"{http://jabber.org/protocol/muc#user}x"]) && ![messageNode check:@"{http://jabber.org/protocol/muc#user}x/invite"])
if(([messageNode check:@"/<type=groupchat>"] || [messageNode check:@"{http://jabber.org/protocol/muc#user}x"]) && ![messageNode check:@"{http://jabber.org/protocol/muc#user}x/invite"])
{
// Ignore all group chat msgs from unkown groups
if(![[[DataLayer sharedInstance] listMucsForAccount:account.accountID] containsObject:messageNode.fromUser])
Expand Down

0 comments on commit 7bce655

Please sign in to comment.