disable reactions for logged out

This commit is contained in:
Kieran 2023-02-14 11:05:56 +00:00
parent 6fef29a41e
commit d7dabecde4
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -283,6 +283,11 @@ const LoginSlice = createSlice({
if (pref) { if (pref) {
state.preferences = JSON.parse(pref); state.preferences = JSON.parse(pref);
} }
// disable reactions for logged out
if (state.loggedOut === true) {
state.preferences.enableReactions = false;
}
}, },
setPrivateKey: (state, action: PayloadAction<HexKey>) => { setPrivateKey: (state, action: PayloadAction<HexKey>) => {
state.loggedOut = false; state.loggedOut = false;