Defer entirely to the end app for handling links
This commit is contained in:
parent
77d1b9af04
commit
16ddb47466
1 changed files with 6 additions and 4 deletions
|
@ -70,10 +70,12 @@ module.exports = {
|
|||
|
||||
// this can technically be done anywhere but doing this here keeps all
|
||||
// the routing url path logic together.
|
||||
linkifyMatrix.onAliasClick = function(event, alias) {
|
||||
dis.dispatch({action: 'view_room_alias', room_alias: alias});
|
||||
event.preventDefault();
|
||||
};
|
||||
if (this.onAliasClick) {
|
||||
linkifyMatrix.onAliasClick = this.onAliasClick;
|
||||
}
|
||||
if (this.onUserClick) {
|
||||
linkifyMatrix.onUserClick = this.onUserClick;
|
||||
}
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue