Chat: Display "choosing a sticker..." action (#1538)
This commit is contained in:
parent
e1fad28413
commit
4921f12a5f
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user