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 {
105105 this . trackPendingChannelInvites =
106106 clientOptions ?. trackPendingChannelInvites === true ;
107107 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+ } ;
124112 this . chatClient . recoverStateOnReconnect = false ;
125113 this . chatClient . devToken ;
126114 let result ;
You can’t perform that action at this time.
0 commit comments