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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user