more actions, new colors (very bad going to change)

This commit is contained in:
Zoe
2023-01-19 00:59:43 -06:00
parent 3cdf7758eb
commit bf5245bec4
17 changed files with 558 additions and 355 deletions

View File

@@ -85,6 +85,10 @@ export const useGlobalStore = defineStore('global', {
if (messageIndex < 0) return;
this.activeChannel.messages[messageIndex] = message
},
removeMessage(messageId: string) {
if (!this.activeChannel.messages.find(m => m.id === messageId)) return;
this.activeChannel.messages = this.activeChannel.messages.filter(m => m.id !== messageId)
},
logout() {
this.dms = []
this.servers = []