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

Support markdown and replaces in media captions.

This commit is contained in:
John Preston
2018-05-24 16:03:21 +03:00
parent 6f6ec217e3
commit 5e7642b42a
22 changed files with 133 additions and 63 deletions

View File

@@ -440,13 +440,13 @@ void Manager::openNotificationMessage(
void Manager::notificationReplied(
PeerId peerId,
MsgId msgId,
const QString &reply) {
const TextWithTags &reply) {
if (!peerId) return;
auto history = App::history(peerId);
auto message = MainWidget::MessageToSend(history);
message.textWithTags = { reply, TextWithTags::Tags() };
message.textWithTags = reply;
message.replyTo = (msgId > 0 && !history->peer->isUser()) ? msgId : 0;
message.clearDraft = false;
if (auto main = App::main()) {