mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Update API scheme on layer 160: Replies.
This commit is contained in:
@@ -8,7 +8,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "api/api_common.h"
|
||||
|
||||
#include "base/qt/qt_key_modifiers.h"
|
||||
#include "data/data_histories.h"
|
||||
#include "data/data_thread.h"
|
||||
#include "history/history.h"
|
||||
|
||||
namespace Api {
|
||||
|
||||
@@ -17,8 +19,8 @@ SendAction::SendAction(
|
||||
SendOptions options)
|
||||
: history(thread->owningHistory())
|
||||
, options(options)
|
||||
, replyTo(thread->topicRootId())
|
||||
, topicRootId(replyTo) {
|
||||
, replyTo({ .msgId = thread->topicRootId() }) {
|
||||
replyTo.topicRootId = replyTo.msgId;
|
||||
}
|
||||
|
||||
SendOptions DefaultSendWhenOnlineOptions() {
|
||||
@@ -28,4 +30,8 @@ SendOptions DefaultSendWhenOnlineOptions() {
|
||||
};
|
||||
}
|
||||
|
||||
MTPInputReplyTo SendAction::mtpReplyTo() const {
|
||||
return Data::ReplyToForMTP(&history->owner(), replyTo);
|
||||
}
|
||||
|
||||
} // namespace Api
|
||||
|
||||
Reference in New Issue
Block a user