Change public to protected for onAction
This commit is contained in:
@@ -45,7 +45,7 @@ export default class GroupHeaderButtons extends HeaderButtons {
|
|||||||
this.onRoomsClicked = this.onRoomsClicked.bind(this);
|
this.onRoomsClicked = this.onRoomsClicked.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onAction(payload: ActionPayload) {
|
protected onAction(payload: ActionPayload) {
|
||||||
super.onAction(payload);
|
super.onAction(payload);
|
||||||
|
|
||||||
if (payload.action === Action.ViewUser) {
|
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);
|
if (this.dispatcherRef) dis.unregister(this.dispatcherRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onAction(payload) {
|
protected onAction(payload) {
|
||||||
// Ignore - intended to be overridden by subclasses
|
// Ignore - intended to be overridden by subclasses
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default class RoomHeaderButtons extends HeaderButtons {
|
|||||||
this.onNotificationsClicked = this.onNotificationsClicked.bind(this);
|
this.onNotificationsClicked = this.onNotificationsClicked.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onAction(payload: ActionPayload) {
|
protected onAction(payload: ActionPayload) {
|
||||||
super.onAction(payload);
|
super.onAction(payload);
|
||||||
if (payload.action === Action.ViewUser) {
|
if (payload.action === Action.ViewUser) {
|
||||||
if (payload.member) {
|
if (payload.member) {
|
||||||
|
|||||||
Reference in New Issue
Block a user