date_row: Update color via update_table_stream_color.

Previously, the function update_table_stream_color did not update the
color of the date_row when it appeared within a topic.  This was
incorrect because it meant that a small piece of the border to the
left of the message box would be left to the previous color when the
stream color was updated.  This commit resolves the issue by adding an
update.

Fixes #15197.
This commit is contained in:
Sanskar Bajpai
2020-07-03 00:53:21 +05:30
committed by Tim Abbott
parent 0d7dbd1b07
commit bd6fe786cf

View File

@@ -16,6 +16,7 @@ function update_table_stream_color(table, stream_name, color) {
if ($.trim($label.text()) === stream_name) {
const messages = $label.closest(".recipient_row").children(".message_row");
messages.children(".messagebox").css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
messages.children(".date_row").css("box-shadow", "inset 2px 0px 0px 0px " + style + ", -1px 0px 0px 0px " + style);
$label.css({background: style,
"border-left-color": style});
$label.removeClass(exports.color_classes);