Commit d1df88cc by panjiangyi

结束会话都打开第一个

parent edc9171d
Showing with 6 additions and 0 deletions
...@@ -595,6 +595,12 @@ export default { ...@@ -595,6 +595,12 @@ export default {
}) })
.execute(); .execute();
await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST); await dispatch(ChatStore.ACTION_GET_MY_CHAT_LIST);
const firstChat = state[ChatStore.STATE_MY_CHAT_ROOM_LIST]?.list[0];
await dispatch(ChatStore.ACTION_SAVE_CURRENT_CHAT_ID_VERSION, {
chatId: firstChat.chat_id,
v: firstChat.uniplat_version,
uniplatId: firstChat.uniplatId,
});
}, },
async [ChatStore.ACTION_CHAT_ADD_MEMBERS]( async [ChatStore.ACTION_CHAT_ADD_MEMBERS](
{ state, dispatch }, { state, dispatch },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment