Skip to content

Commit

Permalink
Merge pull request #204 from PROCOLLAB-github/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VeryBigSad authored Oct 10, 2023
2 parents 8a66e58 + ccfbf7e commit 3e194f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chats/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_chat(cls, user1, user2) -> "DirectChat":
DirectChat: chat between two users
"""

pk = "_".join(sorted([str(user1.pk), str(user2.pk)]))
pk = cls.get_chat_id_from_users(user1, user2)
try:
return cls.objects.get(pk=pk)
except cls.DoesNotExist:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ django-redis = "^5.3.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"

0 comments on commit 3e194f1

Please sign in to comment.