forked from cory/tildefriends
		
	Track/show the origin of each broadcast (discovery/room/peer exchange).
This commit is contained in:
		| @@ -17,6 +17,12 @@ class TfTabConnectionsElement extends LitElement { | ||||
|  | ||||
| 	static styles = styles; | ||||
|  | ||||
| 	static k_broadcast_emojis = { | ||||
| 		discovery: '🏓', | ||||
| 		room: '🚪', | ||||
| 		peer_exchange: '🕸', | ||||
| 	}; | ||||
|  | ||||
| 	constructor() { | ||||
| 		super(); | ||||
| 		let self = this; | ||||
| @@ -92,6 +98,7 @@ class TfTabConnectionsElement extends LitElement { | ||||
| 					Connect | ||||
| 				</button> | ||||
| 				<div class="w3-bar-item"> | ||||
| 					${TfTabConnectionsElement.k_broadcast_emojis[connection.origin]} | ||||
| 					<tf-user id=${connection.pubkey} .users=${this.users}></tf-user> | ||||
| 					${this.render_connection_summary(connection)} | ||||
| 				</div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user