File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ final msg = EMMessage.createTxtSendMessage(
3535 // `content` 为消息文字内容。
3636 content: 'hello',
3737 // 会话类型:单聊为 `Chat`,群聊为 `GroupChat`,默认为单聊。
38- chatType: ChatType.Chat,
39- deliverOnlineOnly: true,
38+ chatType: ChatType.Chat
4039);
4140
41+ msg.deliverOnlineOnly = true;
42+
4243// 发送消息。
4344EMClient.getInstance.chatManager.sendMessage(msg);
4445```
Original file line number Diff line number Diff line change 66
77群组白名单中的成员有如下特点:
88
9- - 群组和管理员默认会被加入群组白名单 。
9+ - 群主和管理员默认会被加入群组白名单 。
1010- 即使开启了全员禁言,群组白名单中的成员仍然可以发送群组消息。
1111- 群组禁言列表上的成员即使加入了群组白名单也无法在群组中发送消息。
1212
Original file line number Diff line number Diff line change 2323
2424- Unity Editor 2019.4.28 或以上版本
2525- Unity SDK 1.0.5 或以上
26- - 目前 Unity SDK 仅支持 x86 指令集及 Intel 芯片。
2726- 操作系统与编译器要求:
2827
2928| 开发平台 | 操作系统版本 | 编译器版本 |
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ class _MyHomePageState extends State<MyHomePage> {
186186 children: <Widget>[
187187 TextButton(
188188 onPressed: () {
189- if (ChatUIKit.instance.isLogged ()) {
189+ if (ChatUIKit.instance.isLoginBefore ()) {
190190 ChatUIKit.instance.logout().then((value) => setState(() {}));
191191 } else {
192192 ChatUIKit.instance
@@ -195,11 +195,11 @@ class _MyHomePageState extends State<MyHomePage> {
195195 .then((value) => setState(() {}));
196196 }
197197 },
198- child: ChatUIKit.instance.isLogged ()
198+ child: ChatUIKit.instance.isLoginBefore ()
199199 ? const Text('Logout')
200200 : const Text('Login'),
201201 ),
202- if (ChatUIKit.instance.isLogged ())
202+ if (ChatUIKit.instance.isLoginBefore ())
203203 const Expanded(child: ChatPage()),
204204 ],
205205 ),
You can’t perform that action at this time.
0 commit comments