Implemented operator<< for FullMsgId to enable qDebug output.

This commit is contained in:
23rd 2024-10-30 06:44:26 +03:00
parent 6237675744
commit 24cf3984c8

View file

@ -156,6 +156,18 @@ struct FullMsgId {
MsgId msg = 0;
};
#ifdef _DEBUG
inline QDebug operator<<(QDebug debug, const FullMsgId &fullMsgId) {
debug.nospace()
<< "FullMsgId(peer: "
<< fullMsgId.peer.value
<< ", msg: "
<< fullMsgId.msg.bare
<< ")";
return debug;
}
#endif // _DEBUG
Q_DECLARE_METATYPE(FullMsgId);
struct FullReplyTo {