Skip to content

Commit

Permalink
Fix var binding of avatar fetch handler in muc processor
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 4, 2023
1 parent 23f38ad commit 547ba04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/MLMucProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ -(void) fetchAvatarForRoom:(NSString*) room
if([HelperTools isAppExtension] && imageData.length > 128 * 1024)
{
DDLogWarn(@"Not processing avatar image data of muc '%@' because it is too big to be handled in appex (%lu bytes), rescheduling it to be fetched in mainapp", iqNode.fromUser, (unsigned long)imageData.length);
[_account addReconnectionHandler:$newHandler(self, fetchAvatarAgain, $ID(iqNode.fromUser))];
[_account addReconnectionHandler:$newHandler(self, fetchAvatarAgain, $ID(jid, iqNode.fromUser))];
return;
}

Expand All @@ -1025,7 +1025,7 @@ -(void) fetchAvatarForRoom:(NSString*) room
else
{
DDLogWarn(@"Not loading avatar image of muc '%@' because it is too big to be processed in appex (%lux%lu pixels), rescheduling it to be fetched in mainapp", iqNode.fromUser, (unsigned long)image.size.width, (unsigned long)image.size.height);
[_account addReconnectionHandler:$newHandler(self, fetchAvatarAgain, $ID(iqNode.fromUser))];
[_account addReconnectionHandler:$newHandler(self, fetchAvatarAgain, $ID(jid, iqNode.fromUser))];
}
}
$$
Expand Down

0 comments on commit 547ba04

Please sign in to comment.