mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
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:
@@ -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()),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user