self nick in the chat fix, hovering message feature

This commit is contained in:
Blue 2021-01-08 00:50:12 +03:00
parent 270a32db9e
commit 15342f3c53
7 changed files with 130 additions and 30 deletions

View file

@ -72,7 +72,17 @@ public:
DeliveryState,
Correction,
SentByMe,
Avatar
Avatar,
Attach,
Bulk
};
enum Attachment {
none,
remote,
downloading,
uploading,
ready
};
private:
enum SyncState {
@ -80,6 +90,12 @@ private:
syncing,
complete
};
struct Attach {
Attachment state;
qreal progress;
QString localPath;
};
//tags
struct id {};
struct time {};
@ -118,6 +134,19 @@ private:
static const QHash<int, QByteArray> roles;
};
struct FeedItem {
QString text;
QString sender;
QString avatar;
bool sentByMe;
bool correction;
QDateTime date;
Shared::Message::State state;
MessageFeed::Attachment attach;
};
};
Q_DECLARE_METATYPE(Models::FeedItem);
#endif // MESSAGEFEED_H