@@ -165,6 +165,9 @@ public static string CreateDeveloperAuthToken(string userId)
165165 /// <inheritdoc cref="StreamChatLowLevelClient.SanitizeUserId"/>
166166 public static string SanitizeUserId ( string userId ) => StreamChatLowLevelClient . SanitizeUserId ( userId ) ;
167167
168+ public void SeAuthorizationCredentials ( AuthCredentials authCredentials )
169+ => InternalLowLevelClient . SeAuthorizationCredentials ( authCredentials ) ;
170+
168171 public Task < IStreamLocalUserData > ConnectUserAsync ( AuthCredentials userAuthCredentials ,
169172 CancellationToken cancellationToken = default )
170173 {
@@ -219,7 +222,7 @@ public async Task<StreamCurrentUnreadCounts> GetLatestUnreadCountsAsync()
219222 {
220223 var dto = await InternalLowLevelClient . InternalChannelApi . GetUnreadCountsAsync ( ) ;
221224 var response = dto . ToDomain < WrappedUnreadCountsResponseInternalDTO , StreamCurrentUnreadCounts > ( ) ;
222-
225+
223226 _localUserData . TryUpdateFromDto < WrappedUnreadCountsResponseInternalDTO , StreamLocalUserData > ( dto , _cache ) ;
224227
225228 return response ;
@@ -453,7 +456,8 @@ public async Task<IEnumerable<IStreamUser>> UpsertUsers(IEnumerable<StreamUserUp
453456 StreamAsserts . AssertNotNullOrEmpty ( userRequests , nameof ( userRequests ) ) ;
454457
455458 //StreamTodo: items could be null
456- var requestDtos = userRequests . Select ( _ => _ . TrySaveToDto < UserRequestInternalDTO > ( ) ) . ToDictionary ( _ => _ . Id , _ => _ ) ;
459+ var requestDtos = userRequests . Select ( _ => _ . TrySaveToDto < UserRequestInternalDTO > ( ) )
460+ . ToDictionary ( _ => _ . Id , _ => _ ) ;
457461
458462 var response = await InternalLowLevelClient . InternalUserApi . UpsertManyUsersAsync (
459463 new UpdateUsersRequestInternalDTO
@@ -720,7 +724,7 @@ private void TryCancelWaitingForUserConnection()
720724 _connectUserTaskSource . TrySetCanceled ( ) ;
721725 }
722726 }
723-
727+
724728 private async Task InternalGetOrCreateChannelAsync ( ChannelType channelType , string channelId )
725729 {
726730#if STREAM_TESTS_ENABLED
@@ -749,7 +753,8 @@ private async Task InternalGetOrCreateChannelAsync(ChannelType channelType, stri
749753
750754 var delay = 4 * i ;
751755#if STREAM_TESTS_ENABLED
752- _logs . Warning ( $ "InternalGetOrCreateChannelAsync attempt failed due to rate limit. Wait { delay } seconds and try again") ;
756+ _logs . Warning (
757+ $ "InternalGetOrCreateChannelAsync attempt failed due to rate limit. Wait { delay } seconds and try again") ;
753758#endif
754759 //StreamTodo: pass CancellationToken
755760 await Task . Delay ( delay * 1000 ) ;
@@ -1144,7 +1149,9 @@ private void OnReactionReceived(ReactionNewEventInternalDTO eventDto)
11441149
11451150 if ( _cache . Messages . TryGet ( eventDto . Message . Id , out var message ) )
11461151 {
1147- var reaction = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction , _cache ) ;
1152+ var reaction
1153+ = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction ,
1154+ _cache ) ;
11481155 message . HandleReactionNewEvent ( eventDto , channel , reaction ) ;
11491156 channel . InternalNotifyReactionReceived ( message , reaction ) ;
11501157 }
@@ -1159,7 +1166,9 @@ private void OnReactionUpdated(ReactionUpdatedEventInternalDTO eventDto)
11591166
11601167 if ( _cache . Messages . TryGet ( eventDto . Message . Id , out var message ) )
11611168 {
1162- var reaction = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction , _cache ) ;
1169+ var reaction
1170+ = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction ,
1171+ _cache ) ;
11631172 message . HandleReactionUpdatedEvent ( eventDto , channel , reaction ) ;
11641173 channel . InternalNotifyReactionUpdated ( message , reaction ) ;
11651174 }
@@ -1174,7 +1183,9 @@ private void OnReactionDeleted(ReactionDeletedEventInternalDTO eventDto)
11741183
11751184 if ( _cache . Messages . TryGet ( eventDto . Message . Id , out var message ) )
11761185 {
1177- var reaction = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction , _cache ) ;
1186+ var reaction
1187+ = new StreamReaction ( ) . TryLoadFromDto < ReactionInternalDTO , StreamReaction > ( eventDto . Reaction ,
1188+ _cache ) ;
11781189 message . HandleReactionDeletedEvent ( eventDto , channel , reaction ) ;
11791190 channel . InternalNotifyReactionDeleted ( message , reaction ) ;
11801191 }
0 commit comments