Skip to content

Commit a5c2c95

Browse files
committed
getFullRoomState2 -> getLatestRoomState2
1 parent 381548e commit a5c2c95

File tree

1 file changed

+2
-2
lines changed
  • ee/packages/federation-matrix/src/api/_matrix

1 file changed

+2
-2
lines changed

ee/packages/federation-matrix/src/api/_matrix/invite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function joinRoom({
173173
await room.joinUser(inviteEvent.roomId, inviteEvent.event.state_key);
174174

175175
// now we create the room we saved post joining
176-
const matrixRoom = await state.getFullRoomState2(inviteEvent.roomId);
176+
const matrixRoom = await state.getLatestRoomState2(inviteEvent.roomId);
177177
if (!matrixRoom) {
178178
throw new Error('room not found not processing invite');
179179
}
@@ -182,7 +182,7 @@ async function joinRoom({
182182
const isDM = inviteEvent.getContent<PduMembershipEventContent>().is_direct;
183183

184184
if (!isDM && !matrixRoom.isPublic() && !matrixRoom.isInviteOnly()) {
185-
throw new Error('room is neither public, private, nor direct message - rocketchat is unable to join for now');
185+
throw new Error('room is neither direct message - rocketchat is unable to join for now');
186186
}
187187

188188
// need both the sender and the participating user to exist in the room

0 commit comments

Comments
 (0)