You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Make GroupStore use MatrixClientPeg
To avoid weirdness with using a cached matrix client
This commit is contained in:
		@@ -114,7 +114,7 @@ function _onGroupInviteFinished(groupId, addrs) {
 | 
			
		||||
 | 
			
		||||
function _onGroupAddRoomFinished(groupId, addrs, addRoomsPublicly) {
 | 
			
		||||
    const matrixClient = MatrixClientPeg.get();
 | 
			
		||||
    const groupStore = GroupStoreCache.getGroupStore(matrixClient, groupId);
 | 
			
		||||
    const groupStore = GroupStoreCache.getGroupStore(groupId);
 | 
			
		||||
    const errorList = [];
 | 
			
		||||
    return Promise.all(addrs.map((addr) => {
 | 
			
		||||
        return groupStore
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user