Fix saving legacy chat admins without migration.

Fixes #10558.
This commit is contained in:
John Preston 2021-03-18 17:27:33 +04:00
parent 00d65fa978
commit 38e15c9bdb
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ auto ChatData::defaultAdminRights(not_null<UserData*> user) -> AdminRights {
const auto isCreator = (creator == user->bareId()) const auto isCreator = (creator == user->bareId())
|| (user->isSelf() && amCreator()); || (user->isSelf() && amCreator());
using Flag = AdminRight; using Flag = AdminRight;
return Flag::f_change_info return Flag::f_other
| Flag::f_change_info
| Flag::f_delete_messages | Flag::f_delete_messages
| Flag::f_ban_users | Flag::f_ban_users
| Flag::f_invite_users | Flag::f_invite_users