Added user check to not notify user sending message
This commit is contained in:
		
							parent
							
								
									fcc2d7b748
								
							
						
					
					
						commit
						94b9d2c63b
					
				| @ -62,6 +62,7 @@ class NotificationService(BaseService): | |||||||
|             except Exception: |             except Exception: | ||||||
|                 raise Exception(f"Failed to create notification: {model.errors}.") |                 raise Exception(f"Failed to create notification: {model.errors}.") | ||||||
| 
 | 
 | ||||||
|  |             if channel_member["user_uid"] != user["uid"]: | ||||||
|                 try: |                 try: | ||||||
|                     await self.app.services.push.notify_user( |                     await self.app.services.push.notify_user( | ||||||
|                         user_uid=channel_member["user_uid"], |                         user_uid=channel_member["user_uid"], | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 BordedDev
						BordedDev