simplified the addIfUnique mechanism in NewsFeed by using a data-based identifier for items

This commit is contained in:
csoler 2019-12-03 22:30:13 +01:00
parent fcbecbaa16
commit b85be7cc8e
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
21 changed files with 62 additions and 165 deletions

View file

@ -37,6 +37,7 @@ public:
void updateItemStatic();
virtual QString uniqueIdentifier() const override { return "ChatMsgItem " + QString::fromStdString(mPeerId.toStdString()) ;}
protected:
/* FeedItem */
virtual void doExpand(bool /*open*/) {}