Disable caching reuploaded encrypted files
This commit is contained in:
@@ -140,7 +140,10 @@ func (br *DiscordBridge) uploadMatrixAttachment(intent *appservice.IntentAPI, da
|
|||||||
}
|
}
|
||||||
dbFile.MXC = uploaded.ContentURI
|
dbFile.MXC = uploaded.ContentURI
|
||||||
}
|
}
|
||||||
|
// TODO add option to cache encrypted files too?
|
||||||
|
if !dbFile.Encrypted {
|
||||||
dbFile.Insert(nil)
|
dbFile.Insert(nil)
|
||||||
|
}
|
||||||
return dbFile, nil
|
return dbFile, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user