From d903c882db7d9f12d6d0e8cc38e59b8b828a9629 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 20 Nov 2024 16:13:46 +1300 Subject: [PATCH] implement unread indicators for channel messages and fix issue where database might not be ready yet but packets are trying to save to db --- src/components/channels/ChannelListItem.vue | 75 +++++++++++++++++++++ src/components/channels/ChannelsList.vue | 44 ++++-------- src/components/messages/MessageViewer.vue | 18 +++-- src/components/pages/MainPage.vue | 3 + src/js/Connection.js | 66 ++++++++++++------ src/js/Database.js | 62 +++++++++++++++++ 6 files changed, 207 insertions(+), 61 deletions(-) create mode 100644 src/components/channels/ChannelListItem.vue diff --git a/src/components/channels/ChannelListItem.vue b/src/components/channels/ChannelListItem.vue new file mode 100644 index 0000000..b1ace33 --- /dev/null +++ b/src/components/channels/ChannelListItem.vue @@ -0,0 +1,75 @@ + + + diff --git a/src/components/channels/ChannelsList.vue b/src/components/channels/ChannelsList.vue index 1893f04..9b74760 100644 --- a/src/components/channels/ChannelsList.vue +++ b/src/components/channels/ChannelsList.vue @@ -1,36 +1,25 @@