message_edit_history: Handle cases for messages edited by inaccessible user.

Inaccessible users are shown as "Unknown user" in message edit history
modal.
This commit is contained in:
Sahil Batra 2023-12-04 19:22:33 +05:30 committed by Tim Abbott
parent fef833008f
commit 2364060a7c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export function fetch_and_render_message_history(message) {
continue;
}
const person = people.get_by_user_id(msg.user_id);
const person = people.get_user_by_id_assert_valid(msg.user_id);
const full_name = person.full_name;
if (index === 0) {