stream_popover: Specify topic when opening compose.

This fixes a bug I introduced when merging
86eccfd20f, by not using the "new topic
button" trigger.

It would probably be wise to replace that "trigger" system with just
passing actual options, as it's pretty confusing.
This commit is contained in:
Tim Abbott 2021-04-05 17:38:57 -07:00
parent 86eccfd20f
commit 46c72fd17d
1 changed files with 5 additions and 1 deletions

View File

@ -477,7 +477,11 @@ export function register_stream_handlers() {
const sub = stream_popover_sub(e);
hide_stream_popover();
compose_actions.start("stream", {trigger: "popover new topic button", stream: sub.name});
compose_actions.start("stream", {
trigger: "popover new topic button",
stream: sub.name,
topic: "",
});
e.preventDefault();
e.stopPropagation();
});