Don't publish of msg is empty after filtering (#8448)

This commit is contained in:
Jorge Schrauwen 2021-08-21 14:00:42 +02:00 committed by GitHub
parent cb47efe3fe
commit c7bf3324dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,8 +243,9 @@ class EntityPublish extends Extension {
if (options.hasOwnProperty('filtered_optimistic')) {
options.filtered_optimistic.forEach((a) => delete msg[a]);
}
addToToPublish(resolvedEntity.settings.ID, msg);
if (Object.keys(msg).length != 0) {
addToToPublish(resolvedEntity.settings.ID, msg);
}
}
if (result && result.membersState && optimistic) {