Fix follow request notifications (#15048)
This commit is contained in:
		
							parent
							
								
									1f945e7390
								
							
						
					
					
						commit
						3678b10823
					
				@ -53,14 +53,20 @@ import {
 | 
				
			|||||||
} from 'mastodon/actions/directory';
 | 
					} from 'mastodon/actions/directory';
 | 
				
			||||||
import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
 | 
					import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const initialListState = ImmutableMap({
 | 
				
			||||||
 | 
					  next: null,
 | 
				
			||||||
 | 
					  isLoading: false,
 | 
				
			||||||
 | 
					  items: ImmutableList(),
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const initialState = ImmutableMap({
 | 
					const initialState = ImmutableMap({
 | 
				
			||||||
  followers: ImmutableMap(),
 | 
					  followers: initialListState,
 | 
				
			||||||
  following: ImmutableMap(),
 | 
					  following: initialListState,
 | 
				
			||||||
  reblogged_by: ImmutableMap(),
 | 
					  reblogged_by: initialListState,
 | 
				
			||||||
  favourited_by: ImmutableMap(),
 | 
					  favourited_by: initialListState,
 | 
				
			||||||
  follow_requests: ImmutableMap(),
 | 
					  follow_requests: initialListState,
 | 
				
			||||||
  blocks: ImmutableMap(),
 | 
					  blocks: initialListState,
 | 
				
			||||||
  mutes: ImmutableMap(),
 | 
					  mutes: initialListState,
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const normalizeList = (state, path, accounts, next) => {
 | 
					const normalizeList = (state, path, accounts, next) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user