Use ISUPPORT CHATHISTORY to discover max page size
This commit is contained in:
parent
305ffb569c
commit
f122e44e9b
2 changed files with 16 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue