mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user