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