Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Persistent Static Menu is not rendered #64

Closed
MarcoEidinger opened this issue Dec 21, 2021 · 1 comment · Fixed by #65
Closed

Persistent Static Menu is not rendered #64

MarcoEidinger opened this issue Dec 21, 2021 · 1 comment · Fixed by #65
Assignees

Comments

@MarcoEidinger
Copy link
Member

Using CAIChannelService.loadPreferences to fetch information about Persistent Static Menu fails due to serialization error

        // load preferences for this channel
        service.loadPreferences(channel: channel) { result in
            DispatchQueue.main.async {
                switch result {
                case .success(let data):
                    viewModel.menu = data?.menu
                case .failure:
                    break
                }
            }
        }

Hence, Persistent Static Menu will not be rendered

@MarcoEidinger MarcoEidinger self-assigned this Dec 21, 2021
MarcoEidinger added a commit that referenced this issue Dec 21, 2021
persistent static menu for channel, as specified by bot developer in
bot's user channels, will now be rendered if you used
`CAIChannelService.loadPreferences` and passed the result in
`MessagingViewModel.menu`

✅ Closes: #64
MarcoEidinger added a commit that referenced this issue Dec 21, 2021
persistent static menu for channel, as specified by bot developer in
bot's user channels, will now be rendered if you used
`CAIChannelService.loadPreferences` and passed the result in
`MessagingViewModel.menu`

✅ Closes: #64
MarcoEidinger added a commit that referenced this issue Dec 21, 2021
persistent static menu for channel, as specified by bot developer in
bot's user channels, will now be rendered if you used
`CAIChannelService.loadPreferences` and passed the result in
`MessagingViewModel.menu`

✅ Closes: #64
MarcoEidinger added a commit that referenced this issue Dec 21, 2021
persistent static menu for channel, as specified by bot developer in
bot's user channels, will now be rendered if you used
`CAIChannelService.loadPreferences` and passed the result in
`MessagingViewModel.menu`

✅ Closes: #64
MarcoEidinger added a commit that referenced this issue Dec 21, 2021
persistent static menu for channel, as specified by bot developer in
bot's user channels, will now be rendered if you used
`CAIChannelService.loadPreferences` and passed the result in
`MessagingViewModel.menu`

✅ Closes: #64
@MarcoEidinger
Copy link
Member Author

Fix is available in v1.05 and v2.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant