Skip to content

Commit f0df578

Browse files
committed
1 parent 9830a1a commit f0df578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extensions/XEP-0153/XMPPvCardAvatarModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)prese
234234
NSString *savedPhotoHash = [_moduleStorage photoHashForJID:jid xmppStream:xmppStream];
235235

236236
// check the hash
237-
if (![photoHash isEqualToString:[_moduleStorage photoHashForJID:jid xmppStream:xmppStream]]
237+
if ([photoHash caseInsensitiveCompare:savedPhotoHash] != NSOrderedSame
238238
&& !([photoHash length] == 0 && [savedPhotoHash length] == 0)) {
239239
[_xmppvCardTempModule fetchvCardTempForJID:jid ignoreStorage:YES];
240240
}

0 commit comments

Comments
 (0)