Merge stream_set and stream_color into a single data structure

(imported from commit 88324e0d296f192feac4f5ecf45f347712cc5914)
This commit is contained in:
Zev Benjamin
2013-01-04 12:02:01 -05:00
parent d9c41dd64f
commit aad09fc267
2 changed files with 17 additions and 16 deletions

View File

@@ -332,10 +332,7 @@ function add_to_table(messages, table_name, filter_function, where, allow_collap
message.stamp = ui.get_gravatar_stamp();
}
var background_color = subs.get_color(message.display_recipient);
if (background_color !== undefined) {
message.background_color = background_color;
}
message.background_color = subs.get_color(message.display_recipient);
messages_to_render.push(message);
prev = message;