diff --git a/lib/pages/chat/events/message_content.dart b/lib/pages/chat/events/message_content.dart index 3186a029..698650e8 100644 --- a/lib/pages/chat/events/message_content.dart +++ b/lib/pages/chat/events/message_content.dart @@ -241,6 +241,7 @@ class MessageContent extends StatelessWidget { decoration: event.redacted ? TextDecoration.lineThrough : null, ), + options: const LinkifyOptions(humanize: false), linkStyle: TextStyle( color: textColor.withAlpha(150), fontSize: bigEmotes ? fontSize * 3 : fontSize, diff --git a/lib/pages/chat/pinned_events.dart b/lib/pages/chat/pinned_events.dart index 88373d07..8f68eea5 100644 --- a/lib/pages/chat/pinned_events.dart +++ b/lib/pages/chat/pinned_events.dart @@ -108,6 +108,7 @@ class PinnedEvents extends StatelessWidget { withSenderNamePrefix: true, hideReply: true, ), + options: const LinkifyOptions(humanize: false), maxLines: 2, style: TextStyle( color: diff --git a/lib/pages/chat_details/chat_details_view.dart b/lib/pages/chat_details/chat_details_view.dart index 8889e877..ff0e3bf9 100644 --- a/lib/pages/chat_details/chat_details_view.dart +++ b/lib/pages/chat_details/chat_details_view.dart @@ -129,6 +129,7 @@ class ChatDetailsView extends StatelessWidget { text: room.topic.isEmpty ? L10n.of(context)!.addGroupDescription : room.topic, + options: const LinkifyOptions(humanize: false), linkStyle: const TextStyle(color: Colors.blueAccent), style: TextStyle( diff --git a/lib/pages/story/story_view.dart b/lib/pages/story/story_view.dart index 26af6686..03e25502 100644 --- a/lib/pages/story/story_view.dart +++ b/lib/pages/story/story_view.dart @@ -278,6 +278,7 @@ class StoryView extends StatelessWidget { ? L10n.of(context)!.loadingPleaseWait : event.content.tryGet('body') ?? '', textAlign: TextAlign.center, + options: const LinkifyOptions(humanize: false), onOpen: (url) => UrlLauncher(context, url.url).launchUrl(), linkStyle: TextStyle( diff --git a/lib/widgets/public_room_bottom_sheet.dart b/lib/widgets/public_room_bottom_sheet.dart index 12a910b8..1012b328 100644 --- a/lib/widgets/public_room_bottom_sheet.dart +++ b/lib/widgets/public_room_bottom_sheet.dart @@ -160,6 +160,7 @@ class PublicRoomBottomSheet extends StatelessWidget { fontSize: 14, color: Theme.of(context).textTheme.bodyMedium!.color, ), + options: const LinkifyOptions(humanize: false), onOpen: (url) => UrlLauncher(context, url.url).launchUrl(), ),