mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Add isEncrypted to vm
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
7ef7c419e3
commit
c2b9c3f726
@ -23,6 +23,7 @@ export class MemberDetailsViewModel extends ViewModel {
|
||||
this._observableMember = options.observableMember;
|
||||
this._mediaRepository = options.mediaRepository;
|
||||
this._member = this._observableMember.get();
|
||||
this._isEncrypted = options.isEncrypted;
|
||||
this.track(this._observableMember.subscribe( () => this._onMemberChange()));
|
||||
}
|
||||
|
||||
@ -55,4 +56,8 @@ export class MemberDetailsViewModel extends ViewModel {
|
||||
get avatarTitle() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
get isEncrypted() {
|
||||
return this._isEncrypted;
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,8 @@ export class RightPanelViewModel extends ViewModel {
|
||||
const segment = this.navigation.path.get("member");
|
||||
const userId = segment.value;
|
||||
const observableMember = await this._room.observeMember(userId);
|
||||
return {observableMember, mediaRepository: this._room.mediaRepository};
|
||||
const isEncrypted = this._room.isEncrypted;
|
||||
return {observableMember, isEncrypted, mediaRepository: this._room.mediaRepository};
|
||||
}
|
||||
|
||||
_setupNavigation() {
|
||||
|
Loading…
Reference in New Issue
Block a user