Skip to content

Commit 3e194f1

Browse files
authored
Merge pull request #204 from PROCOLLAB-github/dev
Dev
2 parents 8a66e58 + ccfbf7e commit 3e194f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chats/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_chat(cls, user1, user2) -> "DirectChat":
149149
DirectChat: chat between two users
150150
"""
151151

152-
pk = "_".join(sorted([str(user1.pk), str(user2.pk)]))
152+
pk = cls.get_chat_id_from_users(user1, user2)
153153
try:
154154
return cls.objects.get(pk=pk)
155155
except cls.DoesNotExist:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ django-redis = "^5.3.0"
6565

6666
[build-system]
6767
requires = ["poetry-core"]
68-
build-backend = "poetry.core.masonry.api"
68+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)