mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Avoid redundant media reloads (#6763)
* Avoid redundant reloads on media viewer * Add changelog
This commit is contained in:
parent
14ab0c6c24
commit
6b7e8a68ab
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
1
changelog.d/6717.bugfix
Normal file
1
changelog.d/6717.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Media: Avoid redundant reloads on media viewer.
|
Loading…
Reference in a new issue