add loading indicator to DMs, fixes #316
This commit is contained in:
parent
0f132fd3b7
commit
50ccb6d010
1 changed files with 8 additions and 2 deletions
|
@ -51,10 +51,16 @@ export default class ConversationsList extends ImmutablePureComponent {
|
|||
}, 300, { leading: true })
|
||||
|
||||
render() {
|
||||
const { conversations, onLoadMore, ...other } = this.props;
|
||||
const { conversations, isLoading, onLoadMore, ...other } = this.props;
|
||||
|
||||
return (
|
||||
<ScrollableList {...other} onLoadMore={onLoadMore && this.handleLoadOlder} scrollKey='direct' ref={this.setRef}>
|
||||
<ScrollableList
|
||||
{...other}
|
||||
onLoadMore={onLoadMore && this.handleLoadOlder}
|
||||
scrollKey='direct' ref={this.setRef}
|
||||
isLoading={isLoading}
|
||||
showLoading={isLoading && conversations.size === 0}
|
||||
>
|
||||
{conversations.map(item => (
|
||||
<ConversationContainer
|
||||
key={item.get('id')}
|
||||
|
|
Loading…
Reference in a new issue