Browse Source

Fix breaking change: Execute watched expressions only when the inputs change. See fca6be7127.

pull/287/head
Evan Theurer 10 years ago committed by Simon Eisenmann
parent
commit
938c38d9f0
  1. 6
      static/js/filters/displayname.js

6
static/js/filters/displayname.js

@ -31,7 +31,7 @@ define([], function() { @@ -31,7 +31,7 @@ define([], function() {
var user_text = translation._("User");
var someone_text = translation._("Someone");
var me_text = translation._("Me");
return function(id, me_ok) {
var filter = function(id, me_ok) {
if (id === group_chat_id) {
return "";
}
@ -62,6 +62,10 @@ define([], function() { @@ -62,6 +62,10 @@ define([], function() {
return someone;
}
};
// TODO(evan) Improve filter to reduce need for constant calling as name may change but id didn't.
// https://github.com/angular/angular.js/commit/fca6be71274e537c7df86ae9e27a3bd1597e9ffa
filter.$stateful = true;
return filter;
}];
});

Loading…
Cancel
Save