]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix follow request notifications
authorThibG <thib@sitedethib.com>
Mon, 26 Oct 2020 14:41:28 +0000 (15:41 +0100)
committerThibaut Girka <thib@sitedethib.com>
Mon, 26 Oct 2020 14:50:48 +0000 (15:50 +0100)
Port 3678b10823a691256ad63c1c4df8dc659dfc3bc0 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/reducers/user_lists.js

index 202f9198f3b09d1005ec4d1cee3eff427eb2e354..bfddbd2466b3609114df7b7d7bc7e62933dfc2df 100644 (file)
@@ -53,14 +53,20 @@ import {
 } from 'flavours/glitch/actions/directory';
 import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
 
+const initialListState = ImmutableMap({
+  next: null,
+  isLoading: false,
+  items: ImmutableList(),
+});
+
 const initialState = ImmutableMap({
-  followers: ImmutableMap(),
-  following: ImmutableMap(),
-  reblogged_by: ImmutableMap(),
-  favourited_by: ImmutableMap(),
-  follow_requests: ImmutableMap(),
-  blocks: ImmutableMap(),
-  mutes: ImmutableMap(),
+  followers: initialListState,
+  following: initialListState,
+  reblogged_by: initialListState,
+  favourited_by: initialListState,
+  follow_requests: initialListState,
+  blocks: initialListState,
+  mutes: initialListState,
 });
 
 const normalizeList = (state, path, accounts, next) => {