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.

echo: Ensure avatar_url is defined when creating a local message.

Evy Kassirer8a25069dd6cb
diff --git a/web/src/echo.ts b/web/src/echo.ts
index 2af358cb384..cccc76028db 100644
--- a/web/src/echo.ts
+++ b/web/src/echo.ts
@@ -272,7 +272,7 @@ export function insert_local_message(
content_type: "text/html",
sender_email: people.my_current_email(),
sender_full_name: people.my_full_name(),
- avatar_url: current_user.avatar_url,
+ avatar_url: people.small_avatar_url_for_person(current_user),
timestamp: Date.now() / 1000,
local_id: local_id_float.toString(),
locally_echoed: true,