store: addMessageSearchResults shouldn't accept null

It makes no sense to emit a add mutation with null, so let's
forbid it.
This commit is contained in:
Reto Brunner 2022-11-27 14:04:48 +01:00
parent 8204c3481a
commit 982816ff20

View File

@ -262,7 +262,7 @@ type Mutations = {
serverHasSettings(state: State, value: State["serverHasSettings"]): void;
messageSearchInProgress(state: State, value: State["messageSearchInProgress"]): void;
messageSearchResults(state: State, value: State["messageSearchResults"]): void;
addMessageSearchResults(state: State, value: State["messageSearchResults"]): void;
addMessageSearchResults(state: State, value: NonNullable<State["messageSearchResults"]>): void;
};
const mutations: Mutations = {