forked from Ivasoft/mattermost-mobile
[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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user