[MM-49006] Handle Plugin related events (#7011)

* Handle Plugin related events

* Remove old ws events

* Adding the missing plugin events
This commit is contained in:
Javier Aguirre
2023-01-30 10:55:27 +01:00
committed by GitHub
parent b2fb4d7ec2
commit 7631d169c9
2 changed files with 9 additions and 0 deletions

View File

@@ -409,6 +409,13 @@ export async function handleEvent(serverUrl: string, msg: WebSocketMessage) {
break;
case WebsocketEvents.GROUP_DISSOCIATED_TO_CHANNEL:
break;
// Plugins
case WebsocketEvents.PLUGIN_STATUSES_CHANGED:
case WebsocketEvents.PLUGIN_ENABLED:
case WebsocketEvents.PLUGIN_DISABLED:
// Do nothing, this event doesn't need logic in the mobile app
break;
}
}

View File

@@ -44,6 +44,8 @@ const WebsocketEvents = {
EMOJI_ADDED: 'emoji_added',
LICENSE_CHANGED: 'license_changed',
CONFIG_CHANGED: 'config_changed',
PLUGIN_ENABLED: 'plugin_enabled',
PLUGIN_DISABLED: 'plugin_disabled',
PLUGIN_STATUSES_CHANGED: 'plugin_statuses_changed',
OPEN_DIALOG: 'open_dialog',
INCREASE_POST_VISIBILITY_BY_ONE: 'increase_post_visibility_by_one',