Skip to content

Commit

Permalink
fix: [message file] remove file link if the file is not downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jan 28, 2025
1 parent 9d41657 commit 9802b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lib/objects/Messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ def get_files(self, file_names=None):
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
Expand Down

0 comments on commit 9802b04

Please sign in to comment.