@@ -53,7 +53,7 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
53
53
54
54
private _clientSession : TalkClientSession ;
55
55
56
- private _cilentUser : ChannelUser ;
56
+ private _clientUser : ChannelUser ;
57
57
private _blockList : TalkBlockSession ;
58
58
59
59
private _channelList : TalkChannelList ;
@@ -71,7 +71,7 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
71
71
72
72
this . _channelList = new TalkChannelList ( this . createSessionProxy ( ) ) ;
73
73
74
- this . _cilentUser = { userId : Long . ZERO } ;
74
+ this . _clientUser = { userId : Long . ZERO } ;
75
75
this . _blockList = new TalkBlockSession ( this . createSessionProxy ( ) ) ;
76
76
77
77
this . _openLink = new OpenLinkService ( this . createSessionProxy ( ) ) ;
@@ -91,10 +91,10 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
91
91
return this . _channelList ! ;
92
92
}
93
93
94
- get cilentUser ( ) {
94
+ get clientUser ( ) {
95
95
if ( ! this . logon ) throw new Error ( 'Cannot access without logging in' ) ;
96
96
97
- return this . _cilentUser ;
97
+ return this . _clientUser ;
98
98
}
99
99
100
100
get blockList ( ) {
@@ -136,7 +136,7 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
136
136
137
137
this . addPingHandler ( ) ;
138
138
139
- this . _cilentUser = { userId : loginRes . result . userId } ;
139
+ this . _clientUser = { userId : loginRes . result . userId } ;
140
140
141
141
await TalkChannelList . initialize ( this . _channelList , loginRes . result . channelList ) ;
142
142
await OpenLinkService . initialize ( this . _openLink ) ;
@@ -158,7 +158,7 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
158
158
* @returns true if client user.
159
159
*/
160
160
isClientUser ( user : ChannelUser ) {
161
- return user . userId . equals ( this . _cilentUser . userId ) ;
161
+ return user . userId . equals ( this . _clientUser . userId ) ;
162
162
}
163
163
164
164
/**
@@ -201,7 +201,7 @@ export class TalkClient extends TypedEmitter<ClientEvents> implements CommandSes
201
201
request : ( method , data ) => this . request ( method , data ) ,
202
202
203
203
get clientUser ( ) {
204
- return instance . cilentUser ;
204
+ return instance . clientUser ;
205
205
} ,
206
206
207
207
get configuration ( ) {
0 commit comments