Skip to content

Commit 81360f0

Browse files
authored
Merge pull request #1425 from haoxiuwen/doc-v2
Modify Flutter Message Delivery Only to Online Users
2 parents 26535fe + 2e134f8 commit 81360f0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/document/flutter/message_deliver_only_online.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
// 发送消息。
4344
EMClient.getInstance.chatManager.sendMessage(msg);
4445
```

docs/document/server-side/group_member_allowlist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
群组白名单中的成员有如下特点:
88

9-
- 群组和管理员默认会被加入群组白名单
9+
- 群主和管理员默认会被加入群组白名单
1010
- 即使开启了全员禁言,群组白名单中的成员仍然可以发送群组消息。
1111
- 群组禁言列表上的成员即使加入了群组白名单也无法在群组中发送消息。
1212

docs/document/unity/quickstart.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
- Unity Editor 2019.4.28 或以上版本
2525
- Unity SDK 1.0.5 或以上
26-
- 目前 Unity SDK 仅支持 x86 指令集及 Intel 芯片。
2726
- 操作系统与编译器要求:
2827

2928
| 开发平台 | 操作系统版本 | 编译器版本 |

docs/uikit/chatuikit/flutter/chatuikit_quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)