compose: Fix unresolve button for empty topics.

When composing to an empty topic, only the compose box topic is
changed to remove the tick-prefix from it.

Fixes #29182.
This commit is contained in:
Kislay Verma
2024-03-08 00:17:27 +05:30
committed by Tim Abbott
parent 32c8d89eeb
commit 454f2f2d95
2 changed files with 18 additions and 2 deletions

View File

@@ -1375,7 +1375,7 @@ export function with_first_message_id(stream_id, topic_name, success_cb, error_c
url: "/json/messages",
data,
success(data) {
const message_id = data.messages[0].id;
const message_id = data.messages[0]?.id;
success_cb(message_id);
},
error: error_cb,