diff --git a/src/filter-component.ts b/src/filter-component.ts index 3ba3f8bc3..18a6b53b5 100644 --- a/src/filter-component.ts +++ b/src/filter-component.ts @@ -16,7 +16,11 @@ limitations under the License. import { RelationType } from "./@types/event"; import { MatrixEvent } from "./models/event"; -import { FILTER_RELATED_BY_REL_TYPES, FILTER_RELATED_BY_SENDERS, THREAD_RELATION_TYPE } from "./models/thread"; +import { + FILTER_RELATED_BY_REL_TYPES, + FILTER_RELATED_BY_SENDERS, + THREAD_RELATION_TYPE, +} from "./models/thread"; /** * @module filter-component @@ -111,10 +115,8 @@ export class FilterComponent { "senders": this.filterJson.senders || null, "not_senders": this.filterJson.not_senders || [], "contains_url": this.filterJson.contains_url || null, - "related_by_senders": this.filterJson.related_by_rel_types || [], - "related_by_rel_types": this.filterJson.related_by_rel_types || [], - "io.element.relation_senders": this.filterJson["io.element.relation_senders"] || [], - "io.element.relation_types": this.filterJson["io.element.relation_types"] || [], + [FILTER_RELATED_BY_SENDERS.name]: this.filterJson[FILTER_RELATED_BY_SENDERS.name] || [], + [FILTER_RELATED_BY_REL_TYPES.name]: this.filterJson[FILTER_RELATED_BY_REL_TYPES.name] || [], }; }