add more jsdoc comments

This commit is contained in:
RMidhunSuresh 2022-01-06 15:33:00 +05:30
parent f76217dcce
commit 7adce08eee

View file

@ -279,6 +279,12 @@ export class Timeline {
}
}
/**
* Creates a new entry based on two related entries
* @param {EventEntry} entry an entry
* @param {EventEntry} relatedEntry `entry` specifies something about this entry (eg: this entry is redacted)
* @returns a new entry or undefined
*/
_createEntryFromRelatedEntries(entry, relatedEntry) {
if (entry.isRedaction) {
const newEntry = relatedEntry.clone();