Fix streaming server crashing when updating filters

This commit is contained in:
Thibaut Girka authored and ThibG committed 2019-06-18 16:50:04 +02:00
1 parent f57a0f89a8
commit 48ec6abaca
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ const startWorker = (workerId) => {
}
// Only send local-only statuses to logged-in users
if (payload.local_only && !req.accountId) {
if (event === 'update' && payload.local_only && !req.accountId) {
log.silly(req.requestId, `Message ${payload.id} filtered because it was local-only`);
return;
}