forscht / ddrive

Discord as a filesystem.
https://ddrive.forscht.dev
MIT License
490 stars 98 forks source link

message.content is undefined, "that file might've been a virus" #40

Closed NoNameLmao closed 1 year ago

NoNameLmao commented 1 year ago

i was starting my ddrive and i kept noticing that it kept crashing during launch. i've dug into this and found that discord, apparently, detected one of the uploading files as a virus and in result did not upload it. solved by deleting the messages, but i'd suggest adding a failsave for that

// my own code i added to find the exact messages
// src/discordFS/index.js, just before messagesGroupByType
tempMessageCache.forEach(message => {
    if (!message.content) {
        debug('>>> INVALID MESSAGE CONTENT')                                              
        debug(message)
    }
})

IMG_20221102_095141 IMG_20221102_095351

forscht commented 1 year ago

Thanks for bringing this up. Will patch it.

forscht commented 1 year ago

Fixed in version 3.7.1 #56