fix: when decrypting file, have better error messages #17
@ -88,7 +88,7 @@ export const sendDM = async (
|
|||||||
const timeoutPromise = new Promise<never>((_, reject) => {
|
const timeoutPromise = new Promise<never>((_, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
reject(new Error('Timeout occurred'))
|
reject(new Error('Timeout occurred'))
|
||||||
}, 15000) // Timeout duration = 15 seconds
|
}, 60000) // Timeout duration = 60 seconds
|
||||||
})
|
})
|
||||||
|
|
||||||
// Encrypt the DM content, with timeout
|
// Encrypt the DM content, with timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user