mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'fix/last-chatroom-uninit' into 'master'
BETA: Fix a crash when sending beeps from outside the chatroom See merge request BondageProjects/Bondage-College!5463
This commit is contained in:
commit
1c8160f657
1 changed files with 2 additions and 4 deletions
|
@ -498,13 +498,11 @@ function FriendListBeepMenuSend() {
|
|||
Message: msg || undefined
|
||||
});
|
||||
|
||||
const chatRoomName = FriendListBeepShowRoom ? (Player.LastChatRoom.Name ?? null) : null;
|
||||
const chatRoomSpace = FriendListBeepShowRoom ? (Player.LastChatRoom.Space ?? null) : null;
|
||||
FriendListBeepLog.push({
|
||||
MemberNumber: FriendListBeepTarget,
|
||||
MemberName: Player.FriendNames.get(FriendListBeepTarget),
|
||||
ChatRoomName: chatRoomName,
|
||||
ChatRoomSpace: chatRoomSpace,
|
||||
ChatRoomName: FriendListBeepShowRoom ? ChatRoomData?.Name : undefined,
|
||||
ChatRoomSpace: FriendListBeepShowRoom ? ChatRoomData?.Space : undefined,
|
||||
Sent: true,
|
||||
Private: false,
|
||||
Time: new Date(),
|
||||
|
|
Loading…
Add table
Reference in a new issue