mirror of https://github.com/vector-im/riot-web
				
				
				
			suppress null member rejoins again
reverts f5fe4b2433
should fix https://github.com/vector-im/riot-web/issues/3788
			
			
				pull/21833/head
			
			
		
							parent
							
								
									28e0a32d6c
								
							
						
					
					
						commit
						2b71123ddc
					
				| 
						 | 
				
			
			@ -65,8 +65,8 @@ function textForMemberEvent(ev) {
 | 
			
		|||
                } else if (!ev.getPrevContent().avatar_url && ev.getContent().avatar_url) {
 | 
			
		||||
                    return senderName + " set a profile picture";
 | 
			
		||||
                } else {
 | 
			
		||||
                    // hacky hack for https://github.com/vector-im/vector-web/issues/2020
 | 
			
		||||
                    return senderName + " rejoined the room.";
 | 
			
		||||
                    // suppress null rejoins
 | 
			
		||||
                    return '';
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue