mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Lazy-loading: Fix search display
Use profile info sent in the search response.
This commit is contained in:
@@ -67,6 +67,11 @@
|
||||
// Highlight the search pattern
|
||||
[cellData highlightPatternInTextMessage:self.searchText withForegroundColor:kRiotColorGreen andFont:patternFont];
|
||||
|
||||
// Use profile information as data to display
|
||||
MXSearchUserProfile *userProfile = result.context.profileInfo[result.result.sender];
|
||||
cellData.senderDisplayName = userProfile.displayName;
|
||||
cellData.senderAvatarUrl = userProfile.avatarUrl;
|
||||
|
||||
[self->cellDataArray insertObject:cellData atIndex:0];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user