Update comment

This commit is contained in:
RMidhunSuresh 2021-12-21 13:47:29 +05:30
parent 595deb3a3d
commit 90c9018aa4
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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");