Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_body: Remove link from message time when locally echoed.

Aman Agrawalfbb2967ff079
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 65436d46aa3..f7c61e55d70 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -281,10 +281,13 @@ $time_column_max_width: 150px;
/* Locally echoed messages. */
&.locally-echoed .message_time {
opacity: 0;
+ /* Don't show pointer when message_time doesn't has a link. */
+ cursor: default;
}
/* Show the spinner only for messages that are still locally echoed. */
&.locally-echoed .slow-send-spinner {
display: unset !important;
+ cursor: default;
}
}
diff --git a/web/templates/message_body.hbs b/web/templates/message_body.hbs
index 96207b1d7cf..914fe7a1a22 100644
--- a/web/templates/message_body.hbs
+++ b/web/templates/message_body.hbs
@@ -24,7 +24,7 @@
<span class="alert-msg"></span>
-<a href="{{ msg/url }}" class="message_time{{#if status_message}} status-time{{/if}}">
+<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message_time{{#if status_message}} status-time{{/if}}">
{{#unless include_sender}}
<span class="copy-paste-text">&nbsp;</span>
{{/unless}}