You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Fix incorrect toJSON for filter-component (#2231)
This commit is contained in:
@@ -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] || [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user