move groups into separate class, allow setting comments for groups, add new api methods

This commit is contained in:
Stanley Dimant
2022-10-02 15:17:49 +02:00
parent a2d884718a
commit 8bad3fd91c
6 changed files with 597 additions and 410 deletions

View File

@@ -49,6 +49,18 @@ public partial class ApiController
await _mareHub!.SendAsync(Api.SendGroupDelete, gid);
}
public async Task SendChangeUserPinned(string gid, string uid, bool isPinned)
{
if (!IsConnected || SecretKey == "-") return;
await _mareHub!.SendAsync(Api.SendGroupChangePinned, gid, uid, isPinned);
}
public async Task SendClearGroup(string gid)
{
if (!IsConnected || SecretKey == "-") return;
await _mareHub!.SendAsync(Api.SendGroupClear, gid);
}
public async Task SendLeaveGroup(string gid)
{
if (!IsConnected || SecretKey == "-") return;