Skip to content

Commit

Permalink
Try only returning INBOX items for my_conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
pricem14pc committed Sep 13, 2024
1 parent 05a54d7 commit 1db2414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions secure_message/repository/retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def _retrieve_internal_thread_list(request_args, user):
if request_args.my_conversations:
conditions.append(Status.actor == user.user_uuid)
conditions.append(Status.msg_id == SecureMessage.msg_id)
conditions.append(Status.label == Labels.INBOX.value)

# If new_respondent_conversations the actor should be NON_SPECIFIC_INTERNAL_USER i.e Group
if request_args.new_respondent_conversations:
Expand Down

0 comments on commit 1db2414

Please sign in to comment.