diff --git a/.changeset/pink-pens-march.md b/.changeset/pink-pens-march.md new file mode 100644 index 0000000000000..2f0b4d63ea55d --- /dev/null +++ b/.changeset/pink-pens-march.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/meteor': patch +--- + +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. diff --git a/apps/meteor/app/lib/server/functions/createRoom.ts b/apps/meteor/app/lib/server/functions/createRoom.ts index ea5acce5dfd3c..0ef03ee7b85b1 100644 --- a/apps/meteor/app/lib/server/functions/createRoom.ts +++ b/apps/meteor/app/lib/server/functions/createRoom.ts @@ -53,6 +53,7 @@ async function createUsersSubscriptions({ await syncRoomRolePriorityForUserAndRoom(owner._id, room._id, ['owner']); if (insertedId) { + await notifyOnSubscriptionChangedById(insertedId, 'inserted'); await notifyOnRoomChanged(room, 'inserted'); }