Chat: Display "choosing a sticker..." action (#1538)

This commit is contained in:
Alexander Zinchuk 2021-11-09 17:29:09 +03:00
parent e1fad28413
commit 4921f12a5f
2 changed files with 4 additions and 2 deletions

View File

@ -326,6 +326,8 @@ export function buildChatTypingStatus(
action = 'lng_send_action_record_round';
} else if (update.action instanceof GramJs.SendMessageUploadRoundAction) {
action = 'lng_send_action_upload_round';
} else if (update.action instanceof GramJs.SendMessageChooseStickerAction) {
action = 'lng_send_action_choose_sticker';
} else if (update.action instanceof GramJs.SpeakingInGroupCallAction) {
return undefined;
}

View File

@ -240,9 +240,9 @@ const StickerPicker: FC<OwnProps & StateProps & DispatchProps> = ({
return (
<div className={fullClassName}>
{!canSendStickers ? (
<div className="picker-disabled">Sending stickers is not allowed in this chat.</div>
<div className="picker-disabled">{lang('ErrorSendRestrictedStickersAll')}</div>
) : noPopulatedSets ? (
<div className="picker-disabled">You have no saved Stickers.</div>
<div className="picker-disabled">{lang('NoStickers')}</div>
) : (
<Loading />
)}