mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 06:26:14 +00:00
fix: [message file] remove file link if the file is not downloaded
This commit is contained in:
parent
9d41657ca8
commit
9802b04fa6
1 changed files with 2 additions and 1 deletions
|
@ -190,8 +190,9 @@ class Message(AbstractObject):
|
|||
nb_files = 0
|
||||
s_files = set()
|
||||
for file_name in file_names:
|
||||
files[file_name] = []
|
||||
for it in self.get_correlation_iter('file-name', '', file_name, 'item'):
|
||||
if file_name not in files:
|
||||
files[file_name] = []
|
||||
files[file_name].append(it[1:])
|
||||
s_files.add(it[1:])
|
||||
nb_files += 1
|
||||
|
|
Loading…
Add table
Reference in a new issue