Merge branch 'fix/last-chatroom-uninit' into 'master'

BETA: Fix a crash when sending beeps from outside the chatroom

See merge request 
This commit is contained in:
BondageProjects 2025-03-13 17:47:45 +00:00
commit 1c8160f657

View file

@ -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(),