refactor: Use people.my_current_email() in echo.js.

This commit is contained in:
Steve Howell
2017-01-20 09:37:46 -08:00
committed by Tim Abbott
parent 1137ef4e40
commit e10c6719d9

View File

@@ -154,7 +154,7 @@ function insert_local_message(message_request, local_id) {
// NOTE: This will parse synchronously. We're not using the async pipeline // NOTE: This will parse synchronously. We're not using the async pipeline
exports.apply_markdown(message); exports.apply_markdown(message);
message.content_type = 'text/html'; message.content_type = 'text/html';
message.sender_email = page_params.email; message.sender_email = people.my_current_email();
message.sender_full_name = page_params.fullname; message.sender_full_name = page_params.fullname;
message.avatar_url = page_params.avatar_url; message.avatar_url = page_params.avatar_url;
message.timestamp = new XDate().getTime() / 1000; message.timestamp = new XDate().getTime() / 1000;