Update libqmatrixclient && disable local echo for now until #40 is fixed.
This commit is contained in:
parent
e19e3b8ff9
commit
564b4c4578
|
@ -1 +1 @@
|
||||||
Subproject commit 98c416813177f7141079101da978fe1222574b5c
|
Subproject commit 7c7ce3d468af242364efb53e77ed12047b6a5382
|
|
@ -240,7 +240,8 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
|
||||||
|
|
||||||
if (role == MessageRole) {
|
if (role == MessageRole) {
|
||||||
static const QRegExp rmReplyRegExp("^> <@.*:.*> .*\n\n(.*)");
|
static const QRegExp rmReplyRegExp("^> <@.*:.*> .*\n\n(.*)");
|
||||||
return utils::eventToString(evt, m_currentRoom).replace(rmReplyRegExp, "\\1");
|
return utils::eventToString(evt, m_currentRoom)
|
||||||
|
.replace(rmReplyRegExp, "\\1");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (role == Qt::ToolTipRole) {
|
if (role == Qt::ToolTipRole) {
|
||||||
|
@ -308,7 +309,7 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
|
||||||
if (role == ReadMarkerRole) return evt.id() == lastReadEventId;
|
if (role == ReadMarkerRole) return evt.id() == lastReadEventId;
|
||||||
|
|
||||||
if (role == SpecialMarksRole) {
|
if (role == SpecialMarksRole) {
|
||||||
if (isPending) return pendingIt->deliveryStatus();
|
if (isPending) return EventStatus::Hidden;
|
||||||
|
|
||||||
if (is<RedactionEvent>(evt)) return EventStatus::Hidden;
|
if (is<RedactionEvent>(evt)) return EventStatus::Hidden;
|
||||||
if (evt.isRedacted()) return EventStatus::Redacted;
|
if (evt.isRedacted()) return EventStatus::Redacted;
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
SpectralUser::SpectralUser(QString userId, Connection* connection)
|
SpectralUser::SpectralUser(QString userId, Connection* connection)
|
||||||
: User(userId, connection) {
|
: User(userId, connection) {
|
||||||
connect(this, &User::avatarChanged, this, &SpectralUser::inheritedAvatarChanged);
|
connect(this, &User::avatarChanged, this,
|
||||||
|
&SpectralUser::inheritedAvatarChanged);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue