Defer entirely to the end app for handling links
This commit is contained in:
@@ -70,10 +70,12 @@ module.exports = {
|
|||||||
|
|
||||||
// this can technically be done anywhere but doing this here keeps all
|
// this can technically be done anywhere but doing this here keeps all
|
||||||
// the routing url path logic together.
|
// the routing url path logic together.
|
||||||
linkifyMatrix.onAliasClick = function(event, alias) {
|
if (this.onAliasClick) {
|
||||||
dis.dispatch({action: 'view_room_alias', room_alias: alias});
|
linkifyMatrix.onAliasClick = this.onAliasClick;
|
||||||
event.preventDefault();
|
}
|
||||||
};
|
if (this.onUserClick) {
|
||||||
|
linkifyMatrix.onUserClick = this.onUserClick;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user