Trust-Anchor-Group / NeuroAccessMaui

Contains a Maui App for TAG Neuro-Access.
Other
4 stars 1 forks source link

ChatViewModel should register for chat events for clarity #98

Open berggrenmille opened 1 month ago

berggrenmille commented 1 month ago

Currently when receiving a Chat message (or if you send one) XmppService handles that message and if the current view is Chat and if message correlates to the current chat it forwards them using the ChatViewModel.MessageAddedAsync method.

ChatViewModel should subscribe to an event and messages accordingy. this is for maintainability and clarity Requires changes in XmppService and ChatViewModel, see XmppClient_OnChatMessage (XmppService)