Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_edit_history: Handle cases for messages edited by inaccessible user.

Sahil Batra2364060a7c33
diff --git a/web/src/message_edit_history.js b/web/src/message_edit_history.js
index 5c5c499f313..8833ffbed6d 100644
--- a/web/src/message_edit_history.js
+++ b/web/src/message_edit_history.js
@@ -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) {