Commit d0a1061c by Sixong.Zhu

type

parent c00baca9
Showing with 5 additions and 3 deletions
......@@ -481,9 +481,11 @@ export default {
{ state, dispatch, getters, commit },
params: Parameters<ChatStore.ACTION_SEND_MESSAGE>[0]
) {
const uniplatId =
state[ChatStore.STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID];
if (uniplatId == null) return;
if (Chat.getServiceType() === ServiceType.Backend) {
if (!state[ChatStore.STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID]) {
return Promise.reject(`No Uniplat Id Found`);
}
}
try {
const chat = getters[ChatStore.GETTER_CURRENT_CURRENT_CHAT];
const data = await Chat.getSdk()
......
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