mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:47:22 +01:00
send disable moderator status to user on ownership transfer
This commit is contained in:
parent
7f3029e82c
commit
a996fc7689
1 changed files with 7 additions and 0 deletions
|
|
@ -558,6 +558,13 @@ public partial class MareHub
|
|||
|
||||
var groupPairs = await _dbContext.GroupPairs.Where(p => p.GroupGID == gid).Select(p => p.GroupUserUID).ToListAsync().ConfigureAwait(false);
|
||||
|
||||
await Clients.Users(uid).SendAsync(Api.OnGroupChange, new GroupDto()
|
||||
{
|
||||
GID = gid,
|
||||
OwnedBy = string.IsNullOrEmpty(group.Owner.Alias) ? group.Owner.UID : group.Owner.Alias,
|
||||
IsModerator = false
|
||||
}).ConfigureAwait(false);
|
||||
|
||||
await Clients.Users(groupPairs).SendAsync(Api.OnGroupChange, new GroupDto()
|
||||
{
|
||||
GID = gid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue