@@ -23,14 +23,14 @@ import EventEmitter from 'events';
23
23
export default class GroupStore extends EventEmitter {
24
24
constructor ( matrixClient , groupId ) {
25
25
super ( ) ;
26
- this . _groupId = groupId ;
26
+ this . groupId = groupId ;
27
27
this . _matrixClient = matrixClient ;
28
28
this . _summary = { } ;
29
29
this . _fetchSummary ( ) ;
30
30
}
31
31
32
32
_fetchSummary ( ) {
33
- this . _matrixClient . getGroupSummary ( this . _groupId ) . then ( ( resp ) => {
33
+ this . _matrixClient . getGroupSummary ( this . groupId ) . then ( ( resp ) => {
34
34
this . _summary = resp ;
35
35
this . _notifyListeners ( ) ;
36
36
} ) . catch ( ( err ) => {
@@ -48,36 +48,36 @@ export default class GroupStore extends EventEmitter {
48
48
49
49
addRoomToGroup ( roomId ) {
50
50
return this . _matrixClient
51
- . addRoomToGroup ( this . _groupId , roomId ) ;
51
+ . addRoomToGroup ( this . groupId , roomId ) ;
52
52
}
53
53
54
54
addRoomToGroupSummary ( roomId , categoryId ) {
55
55
return this . _matrixClient
56
- . addRoomToGroupSummary ( this . _groupId , roomId , categoryId )
56
+ . addRoomToGroupSummary ( this . groupId , roomId , categoryId )
57
57
. then ( this . _fetchSummary . bind ( this ) ) ;
58
58
}
59
59
60
60
addUserToGroupSummary ( userId , roleId ) {
61
61
return this . _matrixClient
62
- . addUserToGroupSummary ( this . _groupId , userId , roleId )
62
+ . addUserToGroupSummary ( this . groupId , userId , roleId )
63
63
. then ( this . _fetchSummary . bind ( this ) ) ;
64
64
}
65
65
66
66
removeRoomFromGroupSummary ( roomId ) {
67
67
return this . _matrixClient
68
- . removeRoomFromGroupSummary ( this . _groupId , roomId )
68
+ . removeRoomFromGroupSummary ( this . groupId , roomId )
69
69
. then ( this . _fetchSummary . bind ( this ) ) ;
70
70
}
71
71
72
72
removeUserFromGroupSummary ( userId ) {
73
73
return this . _matrixClient
74
- . removeUserFromGroupSummary ( this . _groupId , userId )
74
+ . removeUserFromGroupSummary ( this . groupId , userId )
75
75
. then ( this . _fetchSummary . bind ( this ) ) ;
76
76
}
77
77
78
78
setGroupPublicity ( isPublished ) {
79
79
return this . _matrixClient
80
- . setGroupPublicity ( this . _groupId , isPublished )
80
+ . setGroupPublicity ( this . groupId , isPublished )
81
81
. then ( this . _fetchSummary . bind ( this ) ) ;
82
82
}
83
83
}
0 commit comments