pl-fe: fix small shoutbox regression
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -34,7 +34,7 @@ const useShoutboxStore = create<State>()(mutative((set) => ({
|
||||
messages: [],
|
||||
isLoading: true,
|
||||
setMessages: (messages) => set((state: State) => {
|
||||
lazyStore?.dispatch(importEntities({ accounts: messages.map((msg) => msg.author) }) as any);
|
||||
lazyStore?.dispatch(importEntities({ accounts: messages.map((msg) => msg.author) }, { override: false }) as any);
|
||||
state.messages = messages.map(minifyMessage);
|
||||
state.isLoading = false;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user