Allow Moderators/Admins to Grant Replay Access

- Only to themselves, at this time
- Automatically refreshes feed, no need to re-login
This commit is contained in:
ZeldaZach 2024-12-27 17:00:33 -05:00
parent 17893d9747
commit 3524231500
No known key found for this signature in database
7 changed files with 129 additions and 6 deletions

View file

@ -401,5 +401,11 @@ void TabReplays::deleteRemoteReplayFinished(const Response &r, const CommandCont
void TabReplays::replayAddedEventReceived(const Event_ReplayAdded &event)
{
serverDirView->addMatchInfo(event.match_info());
if (event.has_match_info()) {
// 99.9% of events will have match info (Normal Workflow)
serverDirView->addMatchInfo(event.match_info());
} else {
// When a Moderator force adds a replay, we need to refresh their view
serverDirView->refreshTree();
}
}