Use ISUPPORT CHATHISTORY to discover max page size
This commit is contained in:
1 parent
305ffb569c
commit
f122e44e9b
2 files changed
+16
-6
No files matched your search
+1
-1
@@ -904,7 +904,7 @@ export default class App extends Component {
|
||||
// Avoids sending multiple CHATHISTORY commands in parallel
|
||||
this.endOfHistory.set(buf.id, true);
|
||||
|
||||
client.fetchHistoryBefore(buf.name, before).then((result) => {
|
||||
client.fetchHistoryBefore(buf.name, before, 100).then((result) => {
|
||||
this.endOfHistory.set(buf.id, !result.more);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user