This commit is contained in:
otsmr 2025-05-01 00:07:33 +02:00
parent e39b1f11ef
commit a7e57fd7d1

View file

@ -322,7 +322,7 @@ Future<void> purgeMediaFiles(Directory directory) async {
if (match != null) {
// Parse the integer and add it to the list
int messageId = int.parse(match.group(0)!);
Message? message = (directory.path.endsWith("received"))
Message? message = (directory.path.endsWith("send"))
? await twonlyDatabase.messagesDao
.getMessageByMediaUploadId(messageId)
.getSingleOrNull()