修复 msg.Owner 赋值问题

This commit is contained in:
Muihd
2025-04-30 22:52:47 +08:00
parent 888b1be812
commit 1835f70b23
+4
View File
@@ -291,6 +291,8 @@ namespace BarrageGrab
var roomInfo = AppRuntime.RoomCaches.GetCachedWebRoomInfo(msg.RoomId.ToString()); var roomInfo = AppRuntime.RoomCaches.GetCachedWebRoomInfo(msg.RoomId.ToString());
if (roomInfo == null) return; if (roomInfo == null) return;
if (roomInfo.Owner != null)
{
msg.Owner = new RoomAnchorInfo() msg.Owner = new RoomAnchorInfo()
{ {
Nickname = roomInfo.Owner.Nickname, Nickname = roomInfo.Owner.Nickname,
@@ -299,6 +301,8 @@ namespace BarrageGrab
SecUid = roomInfo.Owner.SecUid, SecUid = roomInfo.Owner.SecUid,
UserId = roomInfo.Owner.UserId UserId = roomInfo.Owner.UserId
}; };
}
if (msg.WebRoomId.IsNullOrWhiteSpace()) if (msg.WebRoomId.IsNullOrWhiteSpace())
{ {