Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
realsuayip committed Nov 22, 2024
1 parent f74dc12 commit db463ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions asu/messaging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def get_queryset(self) -> QuerySet[Event]:
interactions = Interaction.objects.all()
if self.conversation.is_group:
interactions = interactions.exclude(type="read")
else:
interactions = interactions.exclude(
message__has_receipt=False,
type="read",
)
return (
Event.objects.select_related("message", "message__sender")
.prefetch_related(
Expand Down

0 comments on commit db463ff

Please sign in to comment.