mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 01:25:55 +03:00
chat: fix page number reset
This commit is contained in:
parent
42d7e66782
commit
73c9c8e1e1
@ -64,7 +64,7 @@ export class ChatWindow extends Component {
|
||||
} else if (props.messages.length >= prevProps.messages.length + 10) {
|
||||
this.hasAskedForMessages = false;
|
||||
let numPages = props.unreadCount > 0 ?
|
||||
Math.ceil(props.unreadCount / PAGE_SIZE) : 1;
|
||||
Math.ceil(props.unreadCount / PAGE_SIZE) : this.state.numPages;
|
||||
|
||||
if (this.state.numPages === numPages) {
|
||||
if (props.unreadCount > 20) {
|
||||
|
Loading…
Reference in New Issue
Block a user