Skip to content

Commit

Permalink
message_list_view: Remove check specific to undefined for "is stream".
Browse files Browse the repository at this point in the history
Private messages too have non-`undefined` stream name. It is usually
an empty string. The check has been changed to not check specifically
for stream name to be undefined.
  • Loading branch information
vrongmeal authored and timabbott committed Apr 6, 2019
1 parent c87893f commit 69660da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/message_list_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ MessageListView.prototype = {
self._add_msg_timestring(message_container);

message_container.small_avatar_url = people.small_avatar_url(message_container.msg);
if (message_container.msg.stream !== undefined) {
if (message_container.msg.stream) {
message_container.background_color =
stream_data.get_color(message_container.msg.stream);
}
Expand Down

0 comments on commit 69660da

Please sign in to comment.