Change public to protected for onAction
This commit is contained in:
parent
d0e2695114
commit
1b4b594f92
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue