恢复视频的发布
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import {
|
||||
v4 as uuidv4
|
||||
} from "uuid";
|
||||
import {v4 as uuidv4} from "uuid";
|
||||
import IMSDK from "openim-uniapp-polyfill";
|
||||
|
||||
import conversation from "./conversation";
|
||||
const state = {
|
||||
friendList: [],
|
||||
blackList: [],
|
||||
@@ -160,7 +158,7 @@ const actions = {
|
||||
commit("SET_FRIEND_LIST", [...tmpList, friendInfo]);
|
||||
}
|
||||
},
|
||||
updateFriendInfo({commit,state}, { friendInfo,isRemove = false}) {
|
||||
updateFriendInfo({commit,state,dispatch }, { friendInfo,isRemove = false}) {
|
||||
const tmpList = [...state.friendList];
|
||||
const idx = tmpList.findIndex((item) => item.userID === friendInfo.userID);
|
||||
|
||||
@@ -174,6 +172,11 @@ const actions = {
|
||||
}
|
||||
commit("SET_FRIEND_LIST", tmpList);
|
||||
}
|
||||
if (isRemove) {
|
||||
const conversationID = friendInfo.userID ? `si_${friendInfo.ownerUserID}_${friendInfo.userID}` : `si_${friendInfo.groupID}`;
|
||||
dispatch('conversation/deleteConversation',conversationID, { root: true });
|
||||
}
|
||||
|
||||
},
|
||||
pushNewBlack({ commit, state}, blackInfo) {
|
||||
const tmpList = [...state.blackList];
|
||||
|
||||
Reference in New Issue
Block a user