File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
projects/stream-chat-angular/src/lib Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -105,22 +105,10 @@ export class ChatClientService {
105
105
this . trackPendingChannelInvites =
106
106
clientOptions ?. trackPendingChannelInvites === true ;
107
107
this . chatClient = StreamChat . getInstance ( apiKey , clientOptions ) ;
108
- if ( 'sdkIdentifier' in this . chatClient ) {
109
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
110
- ( this . chatClient as any ) . sdkIdentifier = {
111
- name : 'angular' ,
112
- version,
113
- } ;
114
- } else {
115
- const userAgent = this . chatClient . getUserAgent ( ) ;
116
- if ( ! userAgent . includes ( 'stream-chat-angular' ) ) {
117
- const parts = userAgent . split ( '-' ) ;
118
- const jsVersion = parts [ parts . length - 1 ] ?? '0.0.0' ;
119
- this . chatClient . setUserAgent (
120
- `stream-chat-angular-v${ version } -llc-v${ jsVersion } `
121
- ) ;
122
- }
123
- }
108
+ this . chatClient . sdkIdentifier = {
109
+ name : 'angular' ,
110
+ version,
111
+ } ;
124
112
this . chatClient . recoverStateOnReconnect = false ;
125
113
this . chatClient . devToken ;
126
114
let result ;
You can’t perform that action at this time.
0 commit comments