Do not clear group alias on ownership change

This commit is contained in:
Loporrit
2025-08-21 06:22:04 +00:00
parent 5c7d5ff29a
commit ee125aaa85

View File

@@ -135,7 +135,6 @@ public partial class MareHub
var prevOwner = await DbContext.GroupPairs.SingleOrDefaultAsync(g => g.GroupGID == dto.Group.GID && g.GroupUserUID == UserUID).ConfigureAwait(false);
prevOwner.IsPinned = false;
group.Owner = newOwnerPair.GroupUser;
group.Alias = null;
newOwnerPair.IsPinned = true;
newOwnerPair.IsModerator = false;
await DbContext.SaveChangesAsync().ConfigureAwait(false);