2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix typing / send action updates handling.

This commit is contained in:
John Preston
2019-04-05 15:17:34 +04:00
parent d3c5ed08ab
commit 60a991bcb0
2 changed files with 44 additions and 2 deletions

View File

@@ -358,10 +358,10 @@ bool History::updateSendActionNeedsAnimating(
Type type,
crl::time duration,
int progress = 0) {
_sendActions.emplace(user, type, now + duration, progress);
_sendActions.emplace_or_assign(user, type, now + duration, progress);
};
action.match([&](const MTPDsendMessageTypingAction &) {
_typing.emplace(user, now + kStatusShowClientsideTyping);
_typing.emplace_or_assign(user, now + kStatusShowClientsideTyping);
}, [&](const MTPDsendMessageRecordVideoAction &) {
emplaceAction(Type::RecordVideo, kStatusShowClientsideRecordVideo);
}, [&](const MTPDsendMessageRecordAudioAction &) {