Skip to content

Commit

Permalink
TW-364 Resend error message
Browse files Browse the repository at this point in the history
  • Loading branch information
drminh2807 committed Aug 24, 2023
1 parent 53979e2 commit fd86600
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/pages/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -830,14 +830,13 @@ class ChatController extends State<Chat>
void sendAgainAction() {
final event = selectedEvents.first;
if (event.status.isError) {
// event.sendAgain();
event.sendAgain();
}
final allEditEvents = event
.aggregatedEvents(timeline!, RelationshipTypes.edit)
.where((e) => e.status.isError);
// ignore: unused_local_variable
for (final e in allEditEvents) {
// e.sendAgain();
e.sendAgain();
}
setState(() => selectedEvents.clear());
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ packages:
description:
path: "."
ref: twake-supported
resolved-ref: "022864176d6e9e05075eeec9e69fd3f8d06214c6"
resolved-ref: "6768740728e153a7a76948cd19131c5239501800"
url: "git@github.com:linagora/matrix-dart-sdk.git"
source: git
version: "0.22.2"
Expand Down

0 comments on commit fd86600

Please sign in to comment.