File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Extensions/XEP-0045/CoreDataStorage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -818,11 +818,11 @@ - (NSDate *)mostRecentMessageTimestampForRoom:(XMPPJID *)roomJID
818
818
NSString *streamBareJidStr = [[self myJIDForXMPPStream: xmppStream] bare ];
819
819
820
820
NSString *predicateFormat = @" roomJIDStr == %@ AND streamBareJidStr == %@ " ;
821
- predicate = [NSPredicate predicateWithFormat: predicateFormat, roomJID, streamBareJidStr];
821
+ predicate = [NSPredicate predicateWithFormat: predicateFormat, roomJID.bare , streamBareJidStr];
822
822
}
823
823
else
824
824
{
825
- predicate = [NSPredicate predicateWithFormat: @" roomJIDStr == %@" , roomJID];
825
+ predicate = [NSPredicate predicateWithFormat: @" roomJIDStr == %@" , roomJID.bare ];
826
826
}
827
827
828
828
NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey: @" localTimestamp" ascending: NO ];
You can’t perform that action at this time.
0 commit comments