these are assumed to be getters

This commit is contained in:
Bruno Windels 2020-08-31 16:07:18 +02:00
parent 4fd3e2ab20
commit 374dce638d

View File

@ -123,11 +123,11 @@ export class MemberChange {
return this._memberEvent.state_key;
}
previousMembership() {
get previousMembership() {
return getPrevContentFromStateEvent(this._memberEvent)?.membership;
}
membership() {
get membership() {
return this._memberEvent.content?.membership;
}
}