drop AvatarOperations and use UserProfileDialog in Chat view

This commit is contained in:
10G Meow 2024-03-24 11:35:05 +02:00
parent 4ab899433b
commit e3df541592
8 changed files with 75 additions and 171 deletions

View file

@ -120,26 +120,6 @@ export default {
room() {
return this.$matrix.currentRoom;
},
memberAvatar() {
let roomMember;
if (this.room) {
this.room.getMembers().forEach(member => {
if (this.room.name === member.name) {
roomMember = member;
}
});
if (roomMember) {
return roomMember.getAvatarUrl(
this.$matrix.matrixClient.getHomeserverUrl(),
40,
40,
"scale",
true
);
}
}
return null;
},
notifications() {
return this.$matrix.joinedRooms.some(r => (r.roomId !== this.$matrix.currentRoomId && r.getCanonicalAlias() !== this.$matrix.currentRoomId) && r.getUnreadNotificationCount("total") > 0) ||
this.$matrix.invites.length > 0;