mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Put back removed links
This commit is contained in:
parent
8ad01f520a
commit
a1af99becb
1 changed files with 5 additions and 0 deletions
|
@ -448,6 +448,7 @@ TimelineItem::TimelineItem(const mtx::events::RoomEvent<mtx::events::msg::Notice
|
||||||
|
|
||||||
generateTimestamp(timestamp);
|
generateTimestamp(timestamp);
|
||||||
|
|
||||||
|
formatted_body.replace(conf::strings::url_regex, conf::strings::url_html);
|
||||||
formatted_body = "<i>" + formatted_body + "</i>";
|
formatted_body = "<i>" + formatted_body + "</i>";
|
||||||
|
|
||||||
if (with_sender) {
|
if (with_sender) {
|
||||||
|
@ -493,6 +494,8 @@ TimelineItem::TimelineItem(const mtx::events::RoomEvent<mtx::events::msg::Emote>
|
||||||
|
|
||||||
descriptionMsg_ = {"", sender, emoteMsg, utils::descriptiveTime(timestamp), timestamp};
|
descriptionMsg_ = {"", sender, emoteMsg, utils::descriptiveTime(timestamp), timestamp};
|
||||||
|
|
||||||
|
formatted_body.replace(conf::strings::url_regex, conf::strings::url_html);
|
||||||
|
|
||||||
generateTimestamp(timestamp);
|
generateTimestamp(timestamp);
|
||||||
|
|
||||||
if (with_sender) {
|
if (with_sender) {
|
||||||
|
@ -533,6 +536,8 @@ TimelineItem::TimelineItem(const mtx::events::RoomEvent<mtx::events::msg::Text>
|
||||||
auto timestamp = QDateTime::fromMSecsSinceEpoch(event.origin_server_ts);
|
auto timestamp = QDateTime::fromMSecsSinceEpoch(event.origin_server_ts);
|
||||||
auto displayName = Cache::displayName(room_id_, sender);
|
auto displayName = Cache::displayName(room_id_, sender);
|
||||||
|
|
||||||
|
formatted_body.replace(conf::strings::url_regex, conf::strings::url_html);
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
descriptionMsg_ = {sender == settings.value("auth/user_id") ? "You" : displayName,
|
descriptionMsg_ = {sender == settings.value("auth/user_id") ? "You" : displayName,
|
||||||
sender,
|
sender,
|
||||||
|
|
Loading…
Reference in a new issue