Change compose box only for going-forward topic changes.

(imported from commit 69de10fd9866acab2d12f15489c67eb9daab8d3d)
This commit is contained in:
Steve Howell 2014-03-12 09:53:39 -04:00
parent b8de1dd13f
commit 9a5289b96c
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ exports.update_messages = function update_messages(events) {
var stream_name = stream_data.get_sub_by_id(event.stream_id).name;
var compose_stream_name = compose.stream_name();
if (stream_name && compose_stream_name) {
if (going_forward_change && stream_name && compose_stream_name) {
if (stream_name.toLowerCase() === compose_stream_name.toLowerCase()) {
if (event.orig_subject === compose.subject()) {
compose.subject(event.subject);