FIX: publish presence to allowed groups as well
This commit is contained in:
parent
f315c142b1
commit
fb9fadf42c
|
@ -60,10 +60,13 @@ after_initialize do
|
||||||
|
|
||||||
if topic.archetype == Archetype.private_message
|
if topic.archetype == Archetype.private_message
|
||||||
user_ids = User.where('admin OR moderator').pluck(:id) + topic.allowed_users.pluck(:id)
|
user_ids = User.where('admin OR moderator').pluck(:id) + topic.allowed_users.pluck(:id)
|
||||||
|
group_ids = topic.allowed_groups.pluck(:id)
|
||||||
|
|
||||||
MessageBus.publish(
|
MessageBus.publish(
|
||||||
messagebus_channel,
|
messagebus_channel,
|
||||||
message.as_json,
|
message.as_json,
|
||||||
user_ids: user_ids,
|
user_ids: user_ids,
|
||||||
|
group_ids: group_ids,
|
||||||
max_backlog_age: MAX_BACKLOG_AGE
|
max_backlog_age: MAX_BACKLOG_AGE
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue