fix: 對話中的成員 無法收到更新信息
This commit is contained in:
@@ -90,11 +90,7 @@ export default class ChatApi extends BaseApi {
|
|||||||
}
|
}
|
||||||
const id = MessagesManager.getInstanceForChat(chat).addMessage(msg)
|
const id = MessagesManager.getInstanceForChat(chat).addMessage(msg)
|
||||||
|
|
||||||
const users: string[] = []
|
const users: string[] = UserChatLinker.getChatMembers(chat.bean.id)
|
||||||
if (chat.bean.type == 'private') {
|
|
||||||
users.push(token.author as string)
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const user of users) {
|
for (const user of users) {
|
||||||
if (ApiManager.checkUserIsOnline(user)) {
|
if (ApiManager.checkUserIsOnline(user)) {
|
||||||
const sockets = ApiManager.getUserClientSockets(user)
|
const sockets = ApiManager.getUserClientSockets(user)
|
||||||
|
|||||||
Reference in New Issue
Block a user