mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Update early MSC3083 support
This commit is contained in:
		
							parent
							
								
									566b8af2a4
								
							
						
					
					
						commit
						d0dc5cf347
					
				@ -19,7 +19,7 @@ import { MatrixClient } from "matrix-js-sdk/src/client";
 | 
			
		||||
import { Room } from "matrix-js-sdk/src/models/room";
 | 
			
		||||
import { EventType } from "matrix-js-sdk/src/@types/event";
 | 
			
		||||
import { ICreateRoomOpts } from "matrix-js-sdk/src/@types/requests";
 | 
			
		||||
import { JoinRule, Preset, Visibility } from "matrix-js-sdk/src/@types/partials";
 | 
			
		||||
import { JoinRule, Preset, RestrictedAllowType, Visibility } from "matrix-js-sdk/src/@types/partials";
 | 
			
		||||
 | 
			
		||||
import { MatrixClientPeg } from './MatrixClientPeg';
 | 
			
		||||
import Modal from './Modal';
 | 
			
		||||
@ -162,10 +162,9 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
 | 
			
		||||
                    content: {
 | 
			
		||||
                        "join_rule": JoinRule.Restricted,
 | 
			
		||||
                        "allow": [{
 | 
			
		||||
                            "type": "m.room_membership",
 | 
			
		||||
                            "type": RestrictedAllowType.RoomMembership,
 | 
			
		||||
                            "room_id": opts.parentSpace.roomId,
 | 
			
		||||
                        }],
 | 
			
		||||
                        "authorised_servers": [client.getDomain()], // TODO this might want tweaking
 | 
			
		||||
                    },
 | 
			
		||||
                })
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user