From 325aed437bca53bd6688437fc1cf9914f2e33fa3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 10 Feb 2020 16:54:10 +0000 Subject: [PATCH] Update lib/views/chat.dart, CHANGELOG.md, pubspec.yaml files --- CHANGELOG.md | 4 ++++ lib/views/chat.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea2de5e..a3ce599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Version 0.7.1 - 2020-02-10 +### Fixed +- Replies with correct sender id + # Version 0.7.0 - 2020-02-10 ### New features - Select mode in chat diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 430ef7a..cac0398 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -153,7 +153,7 @@ class _ChatState extends State<_Chat> { "body": sendController.text, }; if (replyEvent != null) { - String replyText = ("<${room.client.userID}> " + replyEvent.body); + String replyText = ("<${replyEvent.senderId}> " + replyEvent.body); List replyTextLines = replyText.split("\n"); for (int i = 0; i < replyTextLines.length; i++) { replyTextLines[i] = "> " + replyTextLines[i]; diff --git a/pubspec.yaml b/pubspec.yaml index abd65dd..db63731 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Chat with your friends. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.7.0+20 +version: 0.7.1+21 environment: sdk: ">=2.6.0 <3.0.0"