恢复视频的发布
This commit is contained in:
@@ -103,13 +103,25 @@ const actions = {
|
||||
commit("SET_CURRENT_MEMBER_IN_GROUP", memberInfo);
|
||||
}
|
||||
},
|
||||
resetConversationState({
|
||||
commit
|
||||
}) {
|
||||
resetConversationState({commit}) {
|
||||
commit("SET_CURRENT_MEMBER_IN_GROUP", {});
|
||||
commit("SET_CURRENT_GROUP", {});
|
||||
commit("SET_CURRENT_CONVERSATION", {});
|
||||
},
|
||||
deleteConversation({state,commit},conversationID) {
|
||||
return new Promise((reject,resolve)=>{
|
||||
IMSDK.asyncApi('deleteConversationAndDeleteAllMsg',uuidv4(), conversationID).then(res=>{
|
||||
const list = state.conversationList.filter((item)=>{
|
||||
return item.conversationID != conversationID;
|
||||
});
|
||||
commit("SET_CONVERSATION_LIST", [...list]);
|
||||
resolve();
|
||||
}).catch((e)=>{
|
||||
console.error(e);
|
||||
reject(e);
|
||||
})
|
||||
})
|
||||
},
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user