From 547ba0472bf5ab03bfbad2b4158c86865ee3ded8 Mon Sep 17 00:00:00 2001 From: Thilo Molitor Date: Wed, 4 Oct 2023 03:32:12 +0200 Subject: [PATCH] Fix var binding of avatar fetch handler in muc processor --- Monal/Classes/MLMucProcessor.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Monal/Classes/MLMucProcessor.m b/Monal/Classes/MLMucProcessor.m index 087ff06b3f..2fc16c934b 100644 --- a/Monal/Classes/MLMucProcessor.m +++ b/Monal/Classes/MLMucProcessor.m @@ -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; } @@ -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))]; } } $$