Fix MessageContentType::ChatSetTheme support.

This commit is contained in:
levlam 2021-08-27 19:29:58 +03:00
parent c20fd1dd91
commit abcfe46275
2 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,7 @@ bool DialogAction::is_canceled_by_message_of_type(MessageContentType message_con
case MessageContentType::ProximityAlertTriggered:
case MessageContentType::GroupCall:
case MessageContentType::InviteToGroupCall:
case MessageContentType::ChatSetTheme:
return false;
default:
UNREACHABLE();

View File

@ -24834,6 +24834,7 @@ bool MessagesManager::can_edit_message(DialogId dialog_id, const Message *m, boo
case MessageContentType::ProximityAlertTriggered:
case MessageContentType::GroupCall:
case MessageContentType::InviteToGroupCall:
case MessageContentType::ChatSetTheme:
return false;
default:
UNREACHABLE();