Show location descriptions in the timeline when available
This commit is contained in:
@@ -696,6 +696,9 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
|
|||||||
}
|
}
|
||||||
return i18nc("[User] configured <name> widget", "configured %1 widget", e.contentJson()["name"].toString());
|
return i18nc("[User] configured <name> widget", "configured %1 widget", e.contentJson()["name"].toString());
|
||||||
}
|
}
|
||||||
|
if (e.matrixType() == "org.matrix.msc3672.beacon_info"_ls) {
|
||||||
|
return e.contentJson()["description"_ls].toString();
|
||||||
|
}
|
||||||
return e.stateKey().isEmpty() ? i18n("updated %1 state", e.matrixType())
|
return e.stateKey().isEmpty() ? i18n("updated %1 state", e.matrixType())
|
||||||
: i18n("updated %1 state for %2", e.matrixType(), e.stateKey().toHtmlEscaped());
|
: i18n("updated %1 state for %2", e.matrixType(), e.stateKey().toHtmlEscaped());
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,5 +62,10 @@ TimelineContainer {
|
|||||||
id: fullScreenMap
|
id: fullScreenMap
|
||||||
FullScreenMap {}
|
FullScreenMap {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RichLabel {
|
||||||
|
textMessage: root.display
|
||||||
|
visible: root.display !== ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,5 +76,10 @@ TimelineContainer {
|
|||||||
id: fullScreenMap
|
id: fullScreenMap
|
||||||
FullScreenMap { }
|
FullScreenMap { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RichLabel {
|
||||||
|
textMessage: root.display
|
||||||
|
visible: root.display !== ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user