File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ee/packages/federation-matrix/src/api/_matrix Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments