Skip to content

Commit

Permalink
Merge pull request #26343 from adryzz/fix-discord-multiplayer-presence
Browse files Browse the repository at this point in the history
update the current activity when the multiplayer room updates
  • Loading branch information
peppy authored Jan 3, 2024
2 parents 4e7b1e1 + 17656e9 commit e4ba7b8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ private void onRoomUpdated()
addItemButton.Alpha = localUserCanAddItem ? 1 : 0;

Scheduler.AddOnce(UpdateMods);

Activity.Value = new UserActivity.InLobby(Room);
}

private bool localUserCanAddItem => client.IsHost || Room.QueueMode.Value != QueueMode.HostOnly;
Expand Down

0 comments on commit e4ba7b8

Please sign in to comment.