2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Update API scheme to layer 119. Count replies.

This commit is contained in:
John Preston
2020-09-01 10:44:18 +04:00
parent fcdc4cd465
commit 55edb3bdfe
54 changed files with 973 additions and 583 deletions

View File

@@ -837,6 +837,7 @@ bool Widget::onSearchMessages(bool searchCache) {
(_searchQueryFrom
? _searchQueryFrom->inputUser
: MTP_inputUserEmpty()),
MTPint(), // top_msg_id
MTP_inputMessagesFilterEmpty(),
MTP_int(0),
MTP_int(0),
@@ -883,6 +884,9 @@ bool Widget::onSearchMessages(bool searchCache) {
MTP_flags(flags),
MTP_int(folderId),
MTP_string(_searchQuery),
MTP_inputMessagesFilterEmpty(),
MTP_int(0), // min_date
MTP_int(0), // max_date
MTP_int(0),
MTP_inputPeerEmpty(),
MTP_int(0),
@@ -1006,6 +1010,7 @@ void Widget::onSearchMore() {
(_searchQueryFrom
? _searchQueryFrom->inputUser
: MTP_inputUserEmpty()),
MTPint(), // top_msg_id
MTP_inputMessagesFilterEmpty(),
MTP_int(0),
MTP_int(0),
@@ -1062,6 +1067,9 @@ void Widget::onSearchMore() {
MTP_flags(flags),
MTP_int(folderId),
MTP_string(_searchQuery),
MTP_inputMessagesFilterEmpty(),
MTP_int(0), // min_date
MTP_int(0), // max_date
MTP_int(_searchNextRate),
offsetPeer
? offsetPeer->input
@@ -1096,6 +1104,7 @@ void Widget::onSearchMore() {
(_searchQueryFrom
? _searchQueryFrom->inputUser
: MTP_inputUserEmpty()),
MTPint(), // top_msg_id
MTP_inputMessagesFilterEmpty(),
MTP_int(0),
MTP_int(0),