Update DirectMessageController

This commit is contained in:
Daniel Supernault 2020-11-18 23:07:00 -07:00
parent da4c5fb808
commit f796cc7c11
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 77 additions and 68 deletions

View file

@ -480,7 +480,7 @@
if(c) {
axios.delete('/api/direct/message', {
params: {
id: self.ctxContext.id
id: self.ctxContext.reportId
}
}).then(res => {
self.threads[self.threadIndex].messages.splice(self.ctxIndex,1);
@ -543,8 +543,9 @@
self.uploadProgress = 100;
self.uploading = false;
let msg = {
id: Date.now(),
id: e.data.id,
type: e.data.type,
reportId: e.data.reportId,
isAuthor: true,
text: null,
media: e.data.url,