Skip to content

Commit 7b87426

Browse files
committed
update demeapplication
1 parent 003d9ef commit 7b87426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ChatDemoUI/src/com/easemob/chatuidemo/DemoApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public void onCreate() {
8585

8686
// 获取到EMChatOptions对象
8787
EMChatOptions options = EMChatManager.getInstance().getChatOptions();
88+
// 默认环信是不维护好友关系列表的,如果app依赖环信的好友关系,把这个属性设置为true
89+
options.setUseRoster(true);
8890
// 默认添加好友时,是不需要验证的,改成需要验证
8991
options.setAcceptInvitationAlways(false);
9092
// 设置收到消息是否有新消息通知,默认为true

0 commit comments

Comments
 (0)