diff --git a/lib/providers/link_expander.dart b/lib/providers/link_expander.dart index 7437ceb..76b2682 100644 --- a/lib/providers/link_expander.dart +++ b/lib/providers/link_expander.dart @@ -9,6 +9,7 @@ class LinkExpandController extends GetxController { final Map _cachedResponse = {}; Future expandLink(String url) async { + log('[LinkExpander] Expanding link... $url'); final target = utf8.fuse(base64).encode(url); if (_cachedResponse.containsKey(target)) return _cachedResponse[target]; final client = ServiceFinder.configureClient('dealer'); diff --git a/lib/widgets/chat/chat_event.dart b/lib/widgets/chat/chat_event.dart index 6e7da10..e7eac3d 100644 --- a/lib/widgets/chat/chat_event.dart +++ b/lib/widgets/chat/chat_event.dart @@ -197,8 +197,11 @@ class ChatEvent extends StatelessWidget { ), ], ).paddingOnly(right: 12), + if (!isContentPreviewing) + _buildLinkExpansion().paddingOnly(left: 52, right: 8), _buildAttachment(context, isMinimal: isContentPreviewing).paddingOnly( left: isContentPreviewing ? 12 : 56, + right: 8, ), ], ); diff --git a/pubspec.yaml b/pubspec.yaml index aa2a5a4..a4a827b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: solian description: "The Solar Network App" publish_to: "none" -version: 1.2.1+23 +version: 1.2.1+24 environment: sdk: ">=3.3.4 <4.0.0"