mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 13:08:42 +00:00
bug fix
This commit is contained in:
parent
e39b1f11ef
commit
a7e57fd7d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue