Skip to content

Commit fd9d32d

Browse files
fix: missing reactivity when creating a federated room (RocketChat#37007)
1 parent fde71fc commit fd9d32d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/pink-pens-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Fixes reactivity when creating a federated room, that was wrongly showing Join button on composer, requiring a reload or change of route to be able to send a message.

apps/meteor/app/lib/server/functions/createRoom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async function createUsersSubscriptions({
5353
await syncRoomRolePriorityForUserAndRoom(owner._id, room._id, ['owner']);
5454

5555
if (insertedId) {
56+
await notifyOnSubscriptionChangedById(insertedId, 'inserted');
5657
await notifyOnRoomChanged(room, 'inserted');
5758
}
5859

0 commit comments

Comments
 (0)