Bug 1777386 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Scope of this bug is to implement a SpecialMessageAction MULTI_ACTION that takes an array of actions to do, basically SpecialMessageAction.handleAction would call itself multiple times for each action, e.g.,

case "MULTI_ACTION":  action.data.forEach(this.handleAction)

where JSON will have data passed as

action: {
   type: "MULTI_ACTION",
   data : {
     action: {
          type: "OPEN_URL",
          data: {
            args: "https://example.com",
            where: "tabshifted",
          },
        },
    action: {
            type: "SHOW_MIGRATION_WIZARD",
            data: {},
        },
    }
}
Scope of this bug is to implement a SpecialMessageAction MULTI_ACTION that takes an array of actions to do, basically SpecialMessageAction.handleAction would call itself multiple times for each action, e.g.,
```
case "MULTI_ACTION":  action.data.forEach(this.handleAction)
```
where JSON will have data passed as
```
action: {
   type: "MULTI_ACTION",
   data : {
     action: {
          type: "OPEN_URL",
          data: {
            args: "https://example.com",
            where: "tabshifted",
          },
        },
    action: {
            type: "SHOW_MIGRATION_WIZARD",
            data: {},
        },
    }
}
```
Scope of this bug is to implement a SpecialMessageAction MULTI_ACTION that takes an array of actions to run. SpecialMessageAction.handleAction would call itself multiple times for each action, e.g.,

```
case "MULTI_ACTION":  action.data.forEach(this.handleAction)
```
where JSON will have data passed as
```
action: {
   type: "MULTI_ACTION",
   data : {
     action: {
          type: "OPEN_URL",
          data: {
            args: "https://example.com",
            where: "tabshifted",
          },
        },
    action: {
            type: "SHOW_MIGRATION_WIZARD",
            data: {},
        },
    }
}
```

Back to Bug 1777386 Comment 0