forked from mystiq/hydrogen-web
Update comment
This commit is contained in:
parent
595deb3a3d
commit
90c9018aa4
2 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,7 @@ export class EventEntry extends BaseEventEntry {
|
|||
return getRelatedEventId(this.event);
|
||||
}
|
||||
|
||||
// similar to relatedEventID but excludes relations like redaction
|
||||
// similar to relatedEventID but only for replies
|
||||
get contextEventId() {
|
||||
if (this.isReply) {
|
||||
return this.relatedEventId;
|
||||
|
|
|
@ -17,6 +17,8 @@ limitations under the License.
|
|||
import {EventEntry} from "./EventEntry.js";
|
||||
|
||||
// EventEntry but without the two properties that are populated via SyncWriter
|
||||
// Useful if you want to create an EventEntry that is ephemeral
|
||||
|
||||
export class NonPersistedEventEntry extends EventEntry {
|
||||
get fragmentId() {
|
||||
throw new Error("Cannot access fragmentId for non-persisted EventEntry");
|
||||
|
|
Loading…
Reference in a new issue