Skip to content

Commit

Permalink
fix: disable html messages for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Jan 10, 2025
1 parent 4ad2397 commit c30daee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
21 changes: 7 additions & 14 deletions lib/chat/view/events/chat_message_bubble.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import '../../chat_model.dart';
import '../chat_avatar.dart';
import '../chat_profile_dialog.dart';
import 'chat_event_status_icon.dart';
import 'chat_html_message.dart';
import 'chat_message_attachment_indicator.dart';
import 'chat_message_bubble_shape.dart';
import 'chat_message_media_avatar.dart';
Expand Down Expand Up @@ -197,19 +196,13 @@ class _ChatMessageBubbleContent extends StatelessWidget {
decoration: TextDecoration.lineThrough,
),
)
: event.isRichMessage
? HtmlMessage(
html: html,
room: timeline.room,
defaultTextColor: context.colorScheme.onSurface,
)
: SelectableText.rich(
TextSpan(
style: messageStyle,
text: displayEvent.body,
),
style: messageStyle,
),
: SelectableText.rich(
TextSpan(
style: messageStyle,
text: displayEvent.body,
),
style: messageStyle,
),
),
const SizedBox(
height: kBigPadding,
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const kAppName = 'nebuchadnezzar';
const kOrgName = 'org.feichtmeier';
const kAppId = '$kAppName.$kOrgName';
const kAppTitle = 'Chat';
const kAppTitle = 'Nebuchadnezzar';

0 comments on commit c30daee

Please sign in to comment.