Fix forwarding to channels with creator/admin access

This commit is contained in:
Slava Monich 2021-12-25 19:27:09 +02:00
parent 985e7341dc
commit 326a789b01

View file

@ -105,6 +105,7 @@ bool ChatPermissionFilterModel::filterAcceptsRow(int sourceRow, const QModelInde
switch (memberStatus) {
case TDLibWrapper::ChatMemberStatusCreator:
case TDLibWrapper::ChatMemberStatusAdministrator:
return true;
case TDLibWrapper::ChatMemberStatusMember:
permissions = model->data(index, ChatListModel::RoleDisplay).toMap().value(PERMISSIONS).toMap();
break;