好友申请流程优化,群创建简化

This commit is contained in:
2022-02-14 14:23:28 +08:00
parent d8c1ab7090
commit b61d90de4e
10 changed files with 113 additions and 114 deletions

View File

@@ -13,8 +13,8 @@
</template>
<script>
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
import applyCell from '../components/friendApplyCell'
import im from '@/utils/im/index.js'
export default {
components: {
@@ -34,13 +34,8 @@
},
methods: {
getPendingList() {
// 获取系统中的好友关系会话列表
RongIMLib.getConversationList([RongIMLib.ConversationType.SYSTEM], 1000, 0, (res) => {
if (res.code === 0) {
this.pendings = res.conversations.filter((item) => {
return item.objectName == RongIMLib.ObjectName.ContactNotification
})
}
im.getPendingList((pendings) => {
this.pendings = pendings
})
}
}