Skip to content

Commit 6d38f91

Browse files
committed
update demo
1 parent 610ac58 commit 6d38f91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class _MyHomePageState extends State<MyHomePage> {
145145

146146
@override
147147
void dispose() {
148+
EMClient.getInstance.chatManager.removeMessageEvent("UNIQUE_HANDLER_ID");
148149
EMClient.getInstance.chatManager.removeEventHandler("UNIQUE_HANDLER_ID");
149150
super.dispose();
150151
}
@@ -236,7 +237,7 @@ class _MyHomePageState extends State<MyHomePage> {
236237
break;
237238
case MessageType.CMD:
238239
{
239-
// 当前回调中不会有 CMD 类型消息,CMD 类型消息通过 `EMChatManagerEventHandle#onCmdMessagesReceived` 回调接收
240+
// 当前回调中不会有 CMD 类型消息,CMD 类型消息通过 [EMChatManagerEventHandle.onCmdMessagesReceived] 回调接收
240241
}
241242
break;
242243
}

0 commit comments

Comments
 (0)