diff --git a/lib/components/list_items/message.dart b/lib/components/list_items/message.dart index f6b6c7a..69aa799 100644 --- a/lib/components/list_items/message.dart +++ b/lib/components/list_items/message.dart @@ -54,7 +54,7 @@ class Message extends StatelessWidget { MessageTypes.Emote, MessageTypes.None, ].contains(event.messageType) && - event.getBody().isNotEmpty) { + event.body.isNotEmpty) { popupMenuList.add( const PopupMenuItem( value: "copy", @@ -97,7 +97,7 @@ class Message extends StatelessWidget { await event.remove(); break; case "copy": - await Clipboard.setData(ClipboardData(text: event.getBody())); + await Clipboard.setData(ClipboardData(text: event.body)); break; } }, diff --git a/lib/components/matrix.dart b/lib/components/matrix.dart index 2fcc4e7..d08aadb 100644 --- a/lib/components/matrix.dart +++ b/lib/components/matrix.dart @@ -278,7 +278,7 @@ class MatrixState extends State { body = "${event.sender.calcDisplayname()} sent a video"; break; default: - body = "${event.sender.calcDisplayname()}: ${event.getBody()}"; + body = "${event.sender.calcDisplayname()}: ${event.body}"; break; } diff --git a/lib/components/message_content.dart b/lib/components/message_content.dart index 700fb9f..5facb50 100644 --- a/lib/components/message_content.dart +++ b/lib/components/message_content.dart @@ -92,7 +92,7 @@ class MessageContent extends StatelessWidget { child: RaisedButton( color: Colors.blueGrey, child: Text( - "Download ${event.getBody()}", + "Download ${event.body}", overflow: TextOverflow.fade, softWrap: false, maxLines: 1, @@ -116,7 +116,7 @@ class MessageContent extends StatelessWidget { : ""; final String body = event.redacted ? "Redacted by ${event.redactedBecause.sender.calcDisplayname()}" - : senderPrefix + event.getBody(); + : senderPrefix + event.body; if (textOnly) { return Text( body, @@ -140,7 +140,7 @@ class MessageContent extends StatelessWidget { case MessageTypes.Emote: if (textOnly) { return Text( - "* " + event.getBody(), + "* " + event.body, maxLines: maxLines, overflow: TextOverflow.ellipsis, style: TextStyle( @@ -152,7 +152,7 @@ class MessageContent extends StatelessWidget { ); } return LinkText( - text: "* " + event.getBody(), + text: "* " + event.body, textStyle: TextStyle( color: textColor, fontStyle: FontStyle.italic, diff --git a/pubspec.lock b/pubspec.lock index 0cde9d6..32def5c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -82,8 +82,8 @@ packages: dependency: "direct main" description: path: "." - ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864" - resolved-ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864" + ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb + resolved-ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb url: "https://gitlab.com/famedly/famedlysdk.git" source: git version: "0.0.1" @@ -360,7 +360,7 @@ packages: source: hosted version: "1.0.5" url_launcher_web: - dependency: transitive + dependency: "direct main" description: name: url_launcher_web url: "https://pub.dartlang.org" diff --git a/pubspec.yaml b/pubspec.yaml index 8e326d0..6f44649 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: famedlysdk: git: url: https://gitlab.com/famedly/famedlysdk.git - ref: 5a3f88e979fc85cb876dbfecffd8230c9698f864 + ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb localstorage: ^3.0.1+4 bubble: ^1.1.9+1