mirror of https://github.com/vector-im/riot-web
Change public to protected for onAction
parent
d0e2695114
commit
1b4b594f92
|
@ -45,7 +45,7 @@ export default class GroupHeaderButtons extends HeaderButtons {
|
|||
this.onRoomsClicked = this.onRoomsClicked.bind(this);
|
||||
}
|
||||
|
||||
public onAction(payload: ActionPayload) {
|
||||
protected onAction(payload: ActionPayload) {
|
||||
super.onAction(payload);
|
||||
|
||||
if (payload.action === Action.ViewUser) {
|
||||
|
|
|
@ -62,7 +62,7 @@ export default class HeaderButtons extends React.Component<IProps, IState> {
|
|||
if (this.dispatcherRef) dis.unregister(this.dispatcherRef);
|
||||
}
|
||||
|
||||
public onAction(payload) {
|
||||
protected onAction(payload) {
|
||||
// Ignore - intended to be overridden by subclasses
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ export default class RoomHeaderButtons extends HeaderButtons {
|
|||
this.onNotificationsClicked = this.onNotificationsClicked.bind(this);
|
||||
}
|
||||
|
||||
public onAction(payload: ActionPayload) {
|
||||
protected onAction(payload: ActionPayload) {
|
||||
super.onAction(payload);
|
||||
if (payload.action === Action.ViewUser) {
|
||||
if (payload.member) {
|
||||
|
|
Loading…
Reference in New Issue