if (TabInformations.GetInstance().IsMuted(post, isHomeTimeline: false))
return;
- base.AddPostQueue(post);
+ this.internalPosts.TryAdd(post.StatusId, post);
- if (!this.internalPosts.TryAdd(post.StatusId, post))
- return;
+ base.AddPostQueue(post);
}
public override void EnqueueRemovePost(long statusId, bool setIsDeleted)
public virtual void AddPostQueue(PostClass post)
{
+ if (!this.Posts.ContainsKey(post.StatusId))
+ throw new ArgumentException("Specified post not exists in storage", nameof(post));
+
this.addQueue.Enqueue(new TemporaryId(post.StatusId, post.IsRead));
}