mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 13:54:58 -04:00
Keep matrixService stateless and make matrixFilter use modelService.
This commit is contained in:
parent
5ab9929cbb
commit
395bb64b26
5 changed files with 54 additions and 54 deletions
|
@ -89,8 +89,11 @@ angular.module('modelService', [])
|
|||
// provided which can just be given the type and it will return the
|
||||
// 0-len event by default.
|
||||
state: function state(type, state_key) {
|
||||
if (!type) {
|
||||
return undefined; // event type MUST be specified
|
||||
}
|
||||
if (!state_key) {
|
||||
return this.state_events[type];
|
||||
return this.state_events[type]; // treat as 0-len state key
|
||||
}
|
||||
return this.state_events[type + state_key];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue