From b004f9a78286f778111cd0a1f711510a242a0113 Mon Sep 17 00:00:00 2001 From: adb Date: Thu, 24 Dec 2020 03:04:37 +0100 Subject: [PATCH] add userThumbnail --- package.json | 1 + src/components/chatInformation.vue | 21 ++++++-------- src/components/userThumbnail.vue | 46 ++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 src/components/userThumbnail.vue diff --git a/package.json b/package.json index f155810..cb985ab 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@modular-matrix/parse-mxc": "^1.0.1", "core-js": "^3.6.5", "matrix-js-sdk": "^9.1.0", "sass": "^1.29.0", diff --git a/src/components/chatInformation.vue b/src/components/chatInformation.vue index afcc57e..e79d10f 100644 --- a/src/components/chatInformation.vue +++ b/src/components/chatInformation.vue @@ -11,12 +11,11 @@

members:

- -

{{member.content.displayname?member.content.displayname.substr(0,2):member.sender.substr(1,2)}}

+
-
{{member.content.displayname?member.content.displayname:member.sender}}
-
{{member.sender}}
+
{{member.content.displayname || member.content.displayname ?member.content.displayname:member.sender}}
+

and {{room.members.length-20}} other members

@@ -27,11 +26,13 @@ + + \ No newline at end of file