Add feature to delete uploaded files with uploader and admin permissions

This commit is contained in:
tyuXX 2026-10-31 16:45:58 +03:00
parent 7cc9ba7f4d
commit 45629b122e
16 changed files with 587 additions and 8 deletions

View file

@ -444,6 +444,15 @@ public class ClientState
}
}
public void RemoveFile(string fileId)
{
lock (_lock)
{
Files.RemoveAll(f => f.Id == fileId);
NeedsRedraw = true;
}
}
public void SetInboxSync(List<InboxItem> items, int unreadCount, InboxPreferences? preferences = null)
{
lock (_lock)