Say "X removed the room name" instead of showing nothing
Addresses vector-im/riot-web#4072 Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
							parent
							
								
									de1cacf983
								
							
						
					
					
						commit
						d9d25e26d2
					
				|  | @ -117,7 +117,10 @@ function textForTopicEvent(ev) { | |||
| 
 | ||||
| function textForRoomNameEvent(ev) { | ||||
|     var senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender(); | ||||
| 
 | ||||
|      | ||||
|     if (!ev.getContent().name || ev.getContent().name.trim().length === 0) { | ||||
|         return _t('%(senderDisplayName)s removed the room name.', {senderDisplayName: senderDisplayName}); | ||||
|     } | ||||
|     return _t('%(senderDisplayName)s changed the room name to %(roomName)s.', {senderDisplayName: senderDisplayName, roomName: ev.getContent().name}); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -174,6 +174,7 @@ | |||
|   "%(senderName)s changed their profile picture.": "%(senderName)s changed their profile picture.", | ||||
|   "%(senderName)s changed the power level of %(powerLevelDiffText)s.": "%(senderName)s changed the power level of %(powerLevelDiffText)s.", | ||||
|   "%(senderDisplayName)s changed the room name to %(roomName)s.": "%(senderDisplayName)s changed the room name to %(roomName)s.", | ||||
|   "%(senderDisplayName)s removed the room name.": "%(senderDisplayName)s removed the room name.", | ||||
|   "%(senderDisplayName)s changed the topic to \"%(topic)s\".": "%(senderDisplayName)s changed the topic to \"%(topic)s\".", | ||||
|   "Changes to who can read history will only apply to future messages in this room": "Changes to who can read history will only apply to future messages in this room", | ||||
|   "Changes your display nickname": "Changes your display nickname", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 turt2live
						turt2live