mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Room details: Bug fix (sender name was displayed whereas his name appears at the beginning of the message)
This commit is contained in:
@@ -280,12 +280,13 @@ static NSAttributedString *messageSeparator = nil;
|
||||
|
||||
- (BOOL)startsWithSenderName {
|
||||
if (_messageType == RoomMessageTypeText) {
|
||||
NSUInteger index = messageComponents.count;
|
||||
while (index--) {
|
||||
NSUInteger index = 0;
|
||||
while (index < messageComponents.count) {
|
||||
RoomMessageComponent *msgComponent = [messageComponents objectAtIndex:index];
|
||||
if (!msgComponent.isHidden) {
|
||||
return msgComponent.startsWithSenderName;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
|
||||
Reference in New Issue
Block a user