Commit 6319464c authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[cragr] Handle double recipients, skip recipient with same ID as other

Closes: 602370@redmine 598839@redmine 595807@redmine
parent 3903bda5
......@@ -585,8 +585,12 @@ class Cragr(LoginBrowser, StatesMixin):
# couldn't find the account as emitter
return
# set of recipient id to not return or already returned
seen = set([account.id])
for rcpt in self.page.iter_recipients():
if rcpt.iban or rcpt.id != account.id:
if rcpt.id not in seen:
seen.add(rcpt.id)
yield rcpt
@need_login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment