Added user check to not notify user sending message

This commit is contained in:
BordedDev 2025-06-01 13:03:47 +02:00
parent fcc2d7b748
commit 94b9d2c63b
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF

View File

@ -62,6 +62,7 @@ class NotificationService(BaseService):
except Exception:
raise Exception(f"Failed to create notification: {model.errors}.")
if channel_member["user_uid"] != user["uid"]:
try:
await self.app.services.push.notify_user(
user_uid=channel_member["user_uid"],