Skip to content

Commit 6017f33

Browse files
Fix getChats invocation
1 parent 18c1f62 commit 6017f33

File tree

6 files changed

+0
-14
lines changed

6 files changed

+0
-14
lines changed

src/Actions/Chat.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export async function openPinnedChat(index) {
6666
const chats = await TdLibController.send({
6767
'@type': 'getChats',
6868
chat_list: { '@type': 'chatListMain' },
69-
offset_order: '9223372036854775807',
70-
offset_chat_id: 0,
7169
limit: 10
7270
});
7371

src/Components/ColumnLeft/Dialogs.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,11 @@ class Dialogs extends Component {
218218
promises.push(TdLibController.send({
219219
'@type': 'getChats',
220220
chat_list: { '@type': 'chatListMain' },
221-
offset_order: '9223372036854775807',
222-
offset_chat_id: 0,
223221
limit: CHAT_SLICE_LIMIT
224222
}));
225223
promises.push(TdLibController.send({
226224
'@type': 'getChats',
227225
chat_list: { '@type': 'chatListArchive' },
228-
offset_order: '9223372036854775807',
229-
offset_chat_id: 0,
230226
limit: CHAT_SLICE_LIMIT
231227
}));
232228
const [mainChats, archiveChats] = await Promise.all(promises);

src/Components/ColumnLeft/Settings/CreateFilter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ class CreateFilter extends React.Component {
283283
const result = await TdLibController.send({
284284
'@type': 'getChats',
285285
chat_list: { '@type': 'chatListMain' },
286-
offset_order: '9223372036854775807',
287-
offset_chat_id: 0,
288286
limit: 1000
289287
});
290288

src/Components/ColumnLeft/Settings/Filters.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ class Filters extends React.Component {
6666
const chats = await TdLibController.send({
6767
'@type': 'getChats',
6868
chat_list: { '@type': 'chatListMain' },
69-
offset_chat_id: 0,
70-
offset_order: '9223372036854775807',
7169
limit: 1000
7270
});
7371

src/Components/Popup/ForwardDialog.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ class ForwardDialog extends React.Component {
5858
const promises = [];
5959
const getChatsPromise = TdLibController.send({
6060
'@type': 'getChats',
61-
offset_order: '9223372036854775807',
62-
offset_chat_id: 0,
6361
limit: 100
6462
});
6563
promises.push(getChatsPromise);

src/Components/Tile/Dialog.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ class Dialog extends Component {
205205
const chats = await TdLibController.send({
206206
'@type': 'getChats',
207207
chat_list: chatList,
208-
offset_order: '9223372036854775807',
209-
offset_chat_id: 0,
210208
limit: pinnedSumMaxOption.value + 10
211209
});
212210

0 commit comments

Comments
 (0)