mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Avoid redundant media reloads (#6763)
* Avoid redundant reloads on media viewer * Add changelog
This commit is contained in:
@@ -346,6 +346,11 @@
|
||||
|
||||
- (void)displayAttachments:(NSArray*)attachmentArray focusOn:(NSString*)eventId
|
||||
{
|
||||
if ([attachmentArray isEqualToArray:attachments] && eventId.length == 0)
|
||||
{
|
||||
// neither the attachments nor the focus changed, can be ignored
|
||||
return;
|
||||
}
|
||||
NSString *currentAttachmentEventId = eventId;
|
||||
NSString *currentAttachmentOriginalFileName = nil;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user