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'; action = 'lng_send_action_record_round';
} else if (update.action instanceof GramJs.SendMessageUploadRoundAction) { } else if (update.action instanceof GramJs.SendMessageUploadRoundAction) {
action = 'lng_send_action_upload_round'; 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) { } else if (update.action instanceof GramJs.SpeakingInGroupCallAction) {
return undefined; return undefined;
} }

View File

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