[Glitch] Fix mark as read in notifications to be saved immediately
Port bec8b12bb5
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
committed by
Thibaut Girka
parent
c3d82027cf
commit
8071613dd7
@@ -359,7 +359,7 @@ class UI extends React.Component {
|
||||
const visibility = !document[this.visibilityHiddenProp];
|
||||
this.props.dispatch(notificationsSetVisibility(visibility));
|
||||
if (visibility) {
|
||||
this.props.dispatch(submitMarkers());
|
||||
this.props.dispatch(submitMarkers({ immediate: true }));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user