You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-07 05:22:15 +03:00
Always add pending relation events to the timeline sets directly
This special cases pending relation events to go directly to the timeline sets and ignores the `pendingEventOrdering` option. This feels a bit strange in the code, so we should revisit this choice when we stabilized relation support.
This commit is contained in:
@@ -730,6 +730,16 @@ utils.extend(module.exports.MatrixEvent.prototype, {
|
||||
// successfully sent.
|
||||
this.status = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get whether the event is a relation event.
|
||||
* @return {boolean}
|
||||
*/
|
||||
isRelation() {
|
||||
const content = this.getContent();
|
||||
const relation = content && content["m.relates_to"];
|
||||
return relation && relation.rel_type && relation.event_id;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user