@@ -42,7 +42,7 @@ public override async Task ConnectAsync(string input, IBrowserProfile browserPro
4242 return ;
4343 }
4444 _isFirstConnection = true ;
45- reload :
45+ reload :
4646 _isDisconnectedExpected = false ;
4747 _disconnectCts = new CancellationTokenSource ( ) ;
4848 try
@@ -83,7 +83,7 @@ private CookieContainer GetCookieContainer(IBrowserProfile browserProfile)
8383 }
8484 private async Task < string > GetChannelLiveId ( ChannelUrl channelUrl )
8585 {
86- check :
86+ check :
8787 var currentLiveId = await Api . GetCurrentChannelLiveId ( _server , channelUrl . ChannelScreenName ) ;
8888 if ( currentLiveId != null )
8989 {
@@ -101,7 +101,7 @@ private async Task<string> GetChannelLiveId(ChannelUrl channelUrl)
101101 }
102102 private async Task < string > GetCommunityLiveId ( CommunityUrl communityUrl , CookieContainer cc )
103103 {
104- check :
104+ check :
105105 var currentLiveId = await Api . GetCurrentCommunityLiveId ( _server , communityUrl . CommunityId , cc ) ;
106106 if ( currentLiveId != null )
107107 {
@@ -135,7 +135,7 @@ public async Task ConnectInternalAsync(IInput input, IBrowserProfile browserProf
135135 {
136136 vid = await GetCommunityLiveId ( communityUrl , cc ) ;
137137 }
138- else if ( input is LiveId liveId )
138+ else if ( input is LiveId liveId )
139139 {
140140 vid = liveId . Raw ;
141141 }
@@ -417,17 +417,6 @@ private async Task ProcessChatMessageAsync(Chat.IChatMessage message)
417417 {
418418 _chatProvider ? . Disconnect ( ) ;
419419 }
420- string username ;
421- if ( IsRawUserId ( chat . UserId ) && chat . UserId != SystemUserId && _siteOptions . IsAutoGetUsername )
422- {
423- var userInfo = await Api . GetUserInfo ( _server , _cc , chat . UserId ) ;
424- username = userInfo . Nickname ;
425- user . Name = Common . MessagePartFactory . CreateMessageItems ( username ) ;
426- }
427- else
428- {
429- username = null ;
430- }
431420 if ( _siteOptions . IsAutoSetNickname )
432421 {
433422 var nick = SitePluginCommon . Utils . ExtractNickname ( chat . Content ) ;
@@ -444,7 +433,7 @@ private async Task ProcessChatMessageAsync(Chat.IChatMessage message)
444433 PostedAt = Common . UnixTimeConverter . FromUnixTime ( chat . Date ) ,
445434 Text = chat . Content ,
446435 UserId = chat . UserId ,
447- UserName = username ,
436+ UserName = null ,
448437 } ;
449438 comment = abc ;
450439 metadata = new CommentMessageMetadata ( abc , _options , _siteOptions , user , this , isFirstComment )
0 commit comments