Skip to content

Commit ce46eb8

Browse files
committed
outbox [nfc]: Clean up an old workaround for lacking sender_id
This property is required (since 60847c9 / zulip#4667, earlier this year), so we can rely on it to simplify away this workaround. This workaround was in fact the original prompt that caused me to notice we didn't have sender_id (or stream_id) on Outbox, and file zulip#3968 (comment)
1 parent 8871d60 commit ce46eb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webview/html/message.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ $!${divOpenHtml}
231231
`;
232232
}
233233

234-
const { sender_full_name } = message;
235-
const sender_id = message.isOutbox ? backgroundData.ownUser.user_id : message.sender_id;
234+
const { sender_full_name, sender_id } = message;
236235
const avatarUrl = message.avatar_url
237236
.get(
238237
// 48 logical pixels; see `.avatar` and `.avatar img` in

0 commit comments

Comments
 (0)