Use ISUPPORT CHATHISTORY to discover max page size

This commit is contained in:
Simon Ser 2021-05-11 16:10:50 +02:00
parent 305ffb569c
commit f122e44e9b
2 changed files with 16 additions and 6 deletions

View file

@ -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);
});
}