// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
// Boston, MA 02110-1301, USA.
+#nullable enable
+
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
if (!base.RemovePostImmediately(statusId))
return false;
- this.internalPosts.TryRemove(statusId, out var removedPost);
+ this.internalPosts.TryRemove(statusId, out _);
return true;
}
base.ClearIDs();
this.internalPosts.Clear();
}
+
+ internal override bool SetReadState(long statusId, bool read)
+ {
+ if (this.Posts.TryGetValue(statusId, out var post))
+ post.IsRead = read;
+
+ return base.SetReadState(statusId, read);
+ }
}
}