[fractal] room-history: Add preview tooltips on linkified URLs
- From: Kévin Commaille <kcommaille src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] room-history: Add preview tooltips on linkified URLs
- Date: Mon, 10 Oct 2022 10:36:05 +0000 (UTC)
commit 1c891ce5fa2d00ea4d8633d0ef60e521ce4991c3
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Sun Oct 9 15:29:54 2022 +0200
room-history: Add preview tooltips on linkified URLs
src/session/content/room_history/message_row/text.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/session/content/room_history/message_row/text.rs
b/src/session/content/room_history/message_row/text.rs
index bf23a3a79..44f0a4a18 100644
--- a/src/session/content/room_history/message_row/text.rs
+++ b/src/session/content/room_history/message_row/text.rs
@@ -166,7 +166,7 @@ impl MessageText {
/// Transform URLs into links.
fn linkify(text: &str) -> String {
- markup_links(&html_escape(text))
+ hoverify_links(&markup_links(&html_escape(text)))
}
/// Make links show up on hover.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]