Fix #2858
This commit is contained in:
		| @@ -26,12 +26,14 @@ export default Vue.extend({ | ||||
| 		this.init(); | ||||
| 	}, | ||||
| 	beforeDestroy() { | ||||
| 		this.connection.close(); | ||||
| 		this.connection.dispose(); | ||||
| 	}, | ||||
| 	methods: { | ||||
| 		init() { | ||||
| 			if (this.connection) this.connection.close(); | ||||
| 			this.connection = new UserListStream((this as any).os, this.$store.state.i, this.list.id); | ||||
| 			if (this.connection) this.connection.dispose(); | ||||
| 			this.connection = (this as any).os.stream.connectToChannel('userList', { | ||||
| 				listId: this.list.id | ||||
| 			}); | ||||
| 			this.connection.on('note', this.onNote); | ||||
| 			this.connection.on('userAdded', this.onUserAdded); | ||||
| 			this.connection.on('userRemoved', this.onUserRemoved); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo