@@ -67,7 +67,7 @@ internal Notification(ENotificationType notificationType) {
6767 }
6868 }
6969
70- internal readonly List < Notification > Notifications ;
70+ internal readonly HashSet < Notification > Notifications ;
7171
7272 internal NotificationsCallback ( JobID jobID , CMsgClientUserNotifications msg ) {
7373 JobID = jobID ;
@@ -76,7 +76,7 @@ internal NotificationsCallback(JobID jobID, CMsgClientUserNotifications msg) {
7676 return ;
7777 }
7878
79- Notifications = new List < Notification > ( msg . notifications . Count ) ;
79+ Notifications = new HashSet < Notification > ( ) ;
8080 foreach ( var notification in msg . notifications ) {
8181 Notifications . Add ( new Notification ( ( Notification . ENotificationType ) notification . user_notification_type ) ) ;
8282 }
@@ -90,7 +90,7 @@ internal NotificationsCallback(JobID jobID, CMsgClientItemAnnouncements msg) {
9090 }
9191
9292 if ( msg . count_new_items > 0 ) {
93- Notifications = new List < Notification > ( 1 ) {
93+ Notifications = new HashSet < Notification > ( ) {
9494 new Notification ( Notification . ENotificationType . Items )
9595 } ;
9696 }
@@ -99,7 +99,6 @@ internal NotificationsCallback(JobID jobID, CMsgClientItemAnnouncements msg) {
9999
100100 internal sealed class OfflineMessageCallback : CallbackMsg {
101101 internal readonly uint OfflineMessages ;
102- internal readonly List < uint > Users ;
103102
104103 internal OfflineMessageCallback ( JobID jobID , CMsgClientOfflineMessageNotification msg ) {
105104 JobID = jobID ;
@@ -109,7 +108,6 @@ internal OfflineMessageCallback(JobID jobID, CMsgClientOfflineMessageNotificatio
109108 }
110109
111110 OfflineMessages = msg . offline_messages ;
112- Users = msg . friends_with_offline_messages ;
113111 }
114112 }
115113
0 commit comments