[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:
Takeshi Umeda
2020-10-01 11:17:46 +09:00
committed by Thibaut Girka
parent c3d82027cf
commit 8071613dd7
3 changed files with 8 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ const mapDispatchToProps = dispatch => ({
},
onMarkAsRead() {
dispatch(markNotificationsAsRead());
dispatch(submitMarkers());
dispatch(submitMarkers({ immediate: true }));
},
onMount() {
dispatch(mountNotifications());