From ec64e269ca44ae8a14a31898e3b71140633e97e0 Mon Sep 17 00:00:00 2001 From: joschuatonn Date: Thu, 30 May 2024 09:20:03 +0200 Subject: [PATCH] Removed unused code, two-person-chats are now displayed correctly --- src/pages/IndexPage.vue | 92 +++++++++-------------------------------- 1 file changed, 20 insertions(+), 72 deletions(-) diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index 3ffc4b4..d3f0d57 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -55,56 +55,19 @@ @click="selectChat(chat as chat)" > - -
-
Ist ein Chat für zwei
-
- - - + :selected="chat.id == selectedChat.id" + @click="selectChat(chat as chat)" + slim + > + +

+ {{ member.id }}
+

- - -
-
- + @@ -150,7 +113,7 @@
-
+

Das ist der Beginn deines Chats mit {{selectedUser.firstName}} {{selectedUser.lastName}}

@@ -184,8 +147,8 @@
-
-
+
+
@@ -295,23 +260,6 @@ import { useMessageStore } from 'src/stores/message-store'; let loadedGifsAmount = 10; let messages : message[] = [ - // {content: "Halllo", timestamp: "13:38", isOwn: true, gif: false, link: false}, - // {content: "https://www.google.com/", timestamp: "13:20", isOwn: false, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:15", isOwn: false, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:14", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:13", isOwn: true, gif: false, link: false}, - // {content: "https://media.tenor.com/mtiOW6O-k8YAAAAd/shrek-shrek-rizz.gif", timestamp: "13:11", isOwn: false, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Halllo", timestamp: "13:10", isOwn: true, gif: false, link: false}, - // {content: "Hallo", timestamp: "13:10", isOwn: true, gif: false, link: false} ]; function isUrl(url : string) {