Skip to content

Commit 0da9f92

Browse files
authored
Merge pull request #76 from talkjs/fix/action_events
(Chatbox): Fix missing `params` property in MessageActionEvent and ConversationActionEvent
2 parents 4f1c058 + dcecb2b commit 0da9f92

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.17.2
2+
3+
- Fix missing `params` property from `ConversationActionEvent` and `MessageActionEvent`.
4+
15
## 0.17.1
26

37
- Fix internal version.

example/push_notifications/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ packages:
563563
path: "../.."
564564
relative: true
565565
source: path
566-
version: "0.16.2"
566+
version: "0.17.1"
567567
talkjs_flutter_inappwebview:
568568
dependency: transitive
569569
description:

lib/src/chatbox.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,22 @@ enum LoadingState { loading, loaded }
5555
class MessageActionEvent {
5656
final String action;
5757
final Message message;
58+
final Map<String, String> params;
5859

5960
MessageActionEvent.fromJson(Map<String, dynamic> json)
6061
: action = json['action'],
62+
params = Map.from(json['params']),
6163
message = Message.fromJson(json['message']);
6264
}
6365

6466
class ConversationActionEvent {
6567
final String action;
68+
final Map<String, String> params;
6669
final ConversationData conversationData;
6770

6871
ConversationActionEvent.fromJson(Map<String, dynamic> json)
6972
: action = json['action'],
73+
params = Map.from(json['params']),
7074
conversationData = ConversationData.fromJson(json['conversation']);
7175
}
7276

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: talkjs_flutter
22
description: Official TalkJS SDK for Flutter
3-
version: 0.17.1
3+
version: 0.17.2
44
homepage: https://talkjs.com
55

66
environment:

0 commit comments

Comments
 (0)