mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Stop bot streamed drafts from the compose send button
Task: 2026/08/06/stop-bot-streamed-drafts
This commit is contained in:
@@ -1120,6 +1120,12 @@ void Updates::handleSendActionUpdate(
|
||||
const auto &data = action.c_sendMessageRichMessageDraftAction();
|
||||
history->streamedDrafts().apply(rootId, fromId, when, data);
|
||||
return;
|
||||
} else if (action.type() == mtpc_sendMessageStopDraftAction) {
|
||||
const auto &data = action.c_sendMessageStopDraftAction();
|
||||
if (const auto streamed = history->streamedDraftsIfExists()) {
|
||||
streamed->applyStop(data.vrandom_id().v);
|
||||
}
|
||||
return;
|
||||
}
|
||||
session().data().sendActionManager().registerFor(
|
||||
history,
|
||||
|
||||
Reference in New Issue
Block a user