update
This commit is contained in:
@@ -25,15 +25,4 @@ export default class ChatPrivate extends Chat {
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
getTitleForPrivate(user: User, targetUser: User) {
|
||||
const chat = Chat.findById(ChatPrivate.getChatIdByUsersId(user.bean.id, targetUser.bean.id))
|
||||
|
||||
if (chat?.bean.user_a_id == user.bean.id)
|
||||
return targetUser.getNickName()
|
||||
if (chat?.bean.user_b_id == user.bean.id)
|
||||
return user.getNickName()
|
||||
|
||||
return "未知對話"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user