Skip to content

Commit

Permalink
Fix getChats invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-nadymov committed Dec 14, 2021
1 parent 18c1f62 commit 6017f33
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/Actions/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ export async function openPinnedChat(index) {
const chats = await TdLibController.send({
'@type': 'getChats',
chat_list: { '@type': 'chatListMain' },
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: 10
});

Expand Down
4 changes: 0 additions & 4 deletions src/Components/ColumnLeft/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,11 @@ class Dialogs extends Component {
promises.push(TdLibController.send({
'@type': 'getChats',
chat_list: { '@type': 'chatListMain' },
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: CHAT_SLICE_LIMIT
}));
promises.push(TdLibController.send({
'@type': 'getChats',
chat_list: { '@type': 'chatListArchive' },
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: CHAT_SLICE_LIMIT
}));
const [mainChats, archiveChats] = await Promise.all(promises);
Expand Down
2 changes: 0 additions & 2 deletions src/Components/ColumnLeft/Settings/CreateFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ class CreateFilter extends React.Component {
const result = await TdLibController.send({
'@type': 'getChats',
chat_list: { '@type': 'chatListMain' },
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: 1000
});

Expand Down
2 changes: 0 additions & 2 deletions src/Components/ColumnLeft/Settings/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ class Filters extends React.Component {
const chats = await TdLibController.send({
'@type': 'getChats',
chat_list: { '@type': 'chatListMain' },
offset_chat_id: 0,
offset_order: '9223372036854775807',
limit: 1000
});

Expand Down
2 changes: 0 additions & 2 deletions src/Components/Popup/ForwardDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ class ForwardDialog extends React.Component {
const promises = [];
const getChatsPromise = TdLibController.send({
'@type': 'getChats',
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: 100
});
promises.push(getChatsPromise);
Expand Down
2 changes: 0 additions & 2 deletions src/Components/Tile/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ class Dialog extends Component {
const chats = await TdLibController.send({
'@type': 'getChats',
chat_list: chatList,
offset_order: '9223372036854775807',
offset_chat_id: 0,
limit: pinnedSumMaxOption.value + 10
});

Expand Down

0 comments on commit 6017f33

Please sign in to comment.