Avoid redundant media reloads (#6763)

* Avoid redundant reloads on media viewer

* Add changelog
This commit is contained in:
ismailgulek 2022-09-26 14:56:15 +03:00 committed by GitHub
parent 14ab0c6c24
commit 6b7e8a68ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1 @@
Media: Avoid redundant reloads on media viewer.