File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ ProjectList.prototype.join = async function (projectId) {
7272 }
7373}
7474
75+ ProjectList . prototype . kick = async function ( projectId , userId ) {
76+ const upstreamId = this . wellKnown . get ( projectId )
77+ return this . structureAPI . kick ( upstreamId , userId )
78+ }
79+
7580ProjectList . prototype . setName = async function ( projectId , name ) {
7681 const upstreamId = this . wellKnown . get ( projectId )
7782 return this . structureAPI . setName ( upstreamId , name )
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ class StructureAPI {
107107 return this . httpAPI . members ( globalId )
108108 }
109109
110+ async kick ( globalId , userId ) {
111+ return this . httpAPI . kick ( globalId , userId )
112+ }
113+
110114 async permissions ( globalId , userId ) {
111115 const state = await this . httpAPI . getState ( globalId )
112116 const roomPowerlevels = state . find ( stateEvent => stateEvent . type === 'm.room.power_levels' )
You can’t perform that action at this time.
0 commit comments