Skip to content

Commit ae0d112

Browse files
committed
update
1 parent 88072f5 commit ae0d112

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

example/lib/pages/chat/chat_page.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,6 @@ class _ChatPageState extends State<ChatPage>
403403

404404
/// 发消息方法
405405
_sendMessage(EMMessage msg) async {
406-
msg.attributes = {
407-
"int": 1,
408-
"bool": false,
409-
"str": "hello",
410-
"list": ["a", "b", "c"],
411-
"json": {"key": "value"}
412-
};
413406
_chatType() {
414407
ChatType type = ChatType.Chat;
415408
switch (widget.conversation.type) {

lib/src/tools/em_extension.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ extension MapExtension on Map {
132132
value = data;
133133
break;
134134
} on FormatException {}
135-
136-
// try {
137-
// List<dynamic> data = convert.jsonDecode(value);
138-
// value = data;
139-
// break;
140-
// } on FormatException {}
141135
} while (false);
142136
ret[tmpKey] = value;
143137
} else {

0 commit comments

Comments
 (0)