fix(service): Fix wrong type when querying file metadata
This commit is contained in:
parent
86f7e63f65
commit
39babfbadd
@ -83,7 +83,7 @@ class FilesService {
|
|||||||
final result = await db.query(
|
final result = await db.query(
|
||||||
fileMetadataTable,
|
fileMetadataTable,
|
||||||
where: 'id = ?',
|
where: 'id = ?',
|
||||||
whereArgs: [hashes[0]['id']! as int],
|
whereArgs: [hashes[0]['id']! as String],
|
||||||
limit: 1,
|
limit: 1,
|
||||||
);
|
);
|
||||||
if (result.isEmpty) {
|
if (result.isEmpty) {
|
||||||
|
@ -1439,6 +1439,10 @@ class XmppService {
|
|||||||
} else {
|
} else {
|
||||||
// Make sure we create the notification
|
// Make sure we create the notification
|
||||||
shouldNotify = true;
|
shouldNotify = true;
|
||||||
|
|
||||||
|
if (fileMetadata?.path != null) {
|
||||||
|
_log.info('Not downloading file as we already have it locally');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1608,6 +1612,10 @@ class XmppService {
|
|||||||
shouldShowNotification: false,
|
shouldShowNotification: false,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
if (fileMetadata != null) {
|
||||||
|
_log.info('Not downloading file as we already have it locally');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_log.warning(
|
_log.warning(
|
||||||
|
Loading…
Reference in New Issue
Block a user