Add feature to delete uploaded files with uploader and admin permissions
This commit is contained in:
parent
7cc9ba7f4d
commit
45629b122e
16 changed files with 587 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue