inline QModelIndex index() const { return model()->index(row(), 0); }
inline MsgId msgId() const { return index().data(MessageModel::MsgIdRole).value<MsgId>(); }
inline QModelIndex index() const { return model()->index(row(), 0); }
inline MsgId msgId() const { return index().data(MessageModel::MsgIdRole).value<MsgId>(); }