Handle use only latest profile live refreshes

This commit is contained in:
Arnaud Ringenbach
2022-03-02 15:51:01 +01:00
committed by aringenbach
parent a6ed656107
commit 91d3411326
3 changed files with 45 additions and 0 deletions
@@ -107,6 +107,18 @@
bubbleComponents = nil;
}
- (void)refreshProfileWithRoomDataSource:(MXKRoomDataSource *)roomDataSource2
{
if (self.events.firstObject)
{
MXEvent* firstEvent = self.events.firstObject;
senderDisplayName = [roomDataSource.eventFormatter senderDisplayNameForEvent:firstEvent
withRoomState:roomDataSource2.roomState];
senderAvatarUrl = [roomDataSource.eventFormatter senderAvatarUrlForEvent:firstEvent
withRoomState:roomDataSource2.roomState];
}
}
- (NSUInteger)updateEvent:(NSString *)eventId withEvent:(MXEvent *)event
{
NSUInteger count = 0;