about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx
diff options
context:
space:
mode:
authorChristian Schmidt <github@chsc.dk>2023-04-07 15:44:31 +0200
committerGitHub <noreply@github.com>2023-04-07 15:44:31 +0200
commit9ef9974ff207fe91291c81c7a9b9bb83e0df8e16 (patch)
tree13c01f7ffd4d7ba495a2bcaba69d3d2c78e68daa /app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx
parent9d39b111f18faac3812558cd29444a9bd48c959c (diff)
Fix loading spinner + infinite scroll for private mentions (#24446)
Diffstat (limited to 'app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx')
-rw-r--r--app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx b/app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx
index 27e9a593f..04c404e1d 100644
--- a/app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx
+++ b/app/javascript/mastodon/features/direct_timeline/components/conversations_list.jsx
@@ -55,10 +55,10 @@ 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} ref={this.setRef}>
+      <ScrollableList {...other} isLoading={isLoading} showLoading={isLoading && conversations.isEmpty()} onLoadMore={onLoadMore && this.handleLoadOlder} ref={this.setRef}>
         {conversations.map(item => (
           <ConversationContainer
             key={item.get('id')}