control-net / Miunie

Miunie is a community developed bot with an attitude.
Other
46 stars 31 forks source link

⛔ UWP - Cannot send message to read-only channels #262

Closed petrspelos closed 4 years ago

petrspelos commented 4 years ago

Describe the bug Miunie encounters an unexpected error when trying to send a message into a channel she doesn't have permissions to send messages to.

To Reproduce Steps to reproduce the behavior: 1) Launch the UWP application. 2) Select Servers, Programming with Peter. 3) Select # notifications and #rules 4) Type in a message and send it. 5) Notice that an error message displays "unexpected error occurred".

Expected behavior Either read-only channels should not be visible or the text box should be disabled with a "You do not have permissions to send messages into this channel" in the texbox placeholder..

Additional context

This secion of our code base is responsible for getting the channels and sending messages to it.

This code will most likely need to change. Depending on the way you decide to fix this issue, UWP views and ViewModels might change, too.

petrspelos commented 4 years ago

Alright, I've got a neat solution for this. 😊 🎉