mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-10-31 22:07:23 +01:00 
			
		
		
		
	only send MARKREAD to sessions with the read-marker cap
This commit is contained in:
		
							parent
							
								
									ae55a4c660
								
							
						
					
					
						commit
						ef088373a8
					
				| @ -2784,7 +2784,7 @@ func markReadHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res | ||||
| 		// successful update (i.e. it moved the stored timestamp forward): | ||||
| 		// inform other sessions | ||||
| 		for _, session := range client.Sessions() { | ||||
| 			if session != rb.session { | ||||
| 			if session != rb.session && session.capabilities.Has(caps.ReadMarker) { | ||||
| 				session.Send(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp) | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Shivaram Lingamneni
						Shivaram Lingamneni