compose_closed_ui: Make UI in DMs view consistent with non DMs view.

This adds the "New direct message" button back in the closed compose UI
for DMs view, to make the closed compose UI consistent across the app.

Since the closed compose UI is always visible, and one that is likely
to be used frequently, it makes sense to have the same UI across all
the views to avoid the mental overhead of figuring out how to compose
a message in different views.
This commit is contained in:
Sayam Samal
2024-07-18 14:15:29 +05:30
committed by Tim Abbott
parent 48edf4c8b8
commit 39d6d3ed27
3 changed files with 6 additions and 76 deletions

View File

@@ -89,12 +89,7 @@ export function initialize(): void {
onShow(instance) {
const $elem = $(instance.reference);
const conversation_type = $elem.attr("data-conversation-type");
if (conversation_type === "direct") {
instance.setContent(
parse_html($("#new_direct_message_button_tooltip_template").html()),
);
return undefined;
} else if (conversation_type === "stream") {
if (conversation_type === "stream") {
instance.setContent(
parse_html($("#new_topic_message_button_tooltip_template").html()),
);