diff --git a/src/models.ts b/src/models.ts index 25593e8..dea6c4a 100644 --- a/src/models.ts +++ b/src/models.ts @@ -5,6 +5,7 @@ export interface ptpUser { username: string; status: string; profilepicture: string; + isPrivate: boolean; } export interface responseModel { @@ -20,6 +21,7 @@ export interface chat{ displayName: string; profilepicture: string; profilepictureAsString: string; + isGroupChat: boolean; } export interface message { diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index 7abdc04..1642d64 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -53,6 +53,7 @@ :selected="chat.id == selectedChat.id" :chat="chat" @click="selectChat(chat as chat)" + :lastMessage="getChatPreviewMessage(chat.id)" > - -

- {{ member.id }}
-

+ + @@ -92,7 +98,7 @@ :image="selectedChat.members.find((member) => member.id !== userStore.user!.id)?.profilepicture" > -
+

- Du, + Du + , @{{ user.username }}{{ index < selectedChat.members.length - 2 ? ", " : "" }}

@@ -113,37 +120,13 @@
-
+

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

+

Du hast schonmal mit dem geschrieben wie schön

- -
- - - - - -
@@ -173,7 +156,7 @@