inbox: Handle latest message not fetched when replying.

Since inbox is populated based on unread data which is part
of /register request, it is possible that we don't have the
actual message in our message_store. In that case, we return
a fake message object.
This commit is contained in:
Aman Agrawal
2023-10-07 07:44:04 +00:00
committed by Tim Abbott
parent 2c4156e239
commit 9fc6af220e
2 changed files with 26 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ export function respond_to_message(opts) {
if (message_opts.message === undefined) {
compose_actions.start(message_opts.msg_type, {
trigger: "inbox_nofocus",
stream_id: message_opts.stream_id,
...message_opts,
});
return;
}