Merge branch 'feature/5297_fix_empty_chat_bubble' into 'develop'

MESSENGER-5297 fix empty chat bubble

See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!247
This commit is contained in:
JanNiklas Grabowski
2023-11-10 13:08:19 +00:00

View File

@@ -1279,7 +1279,8 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
NSString *eventThreadId = event.threadId;
// Use the HTML formatted string if provided
if ([contentToUse[@"format"] isEqualToString:kMXRoomMessageFormatHTML])
// bwi: 5297 fix empty chat bubble
if ([contentToUse[@"format"] isEqualToString:kMXRoomMessageFormatHTML] && ![contentToUse[@"formatted_body"] isEqualToString: @""])
{
isHTML =YES;
MXJSONModelSetString(body, contentToUse[@"formatted_body"]);