talkjs / talkjs-flutter

Flutter SDK for the TalkJS Chat API
https://talkjs.com
BSD 3-Clause "New" or "Revised" License
9 stars 14 forks source link

Fix buggy MessageFieldOptions #55

Closed bugnano closed 7 months ago

bugnano commented 7 months ago

Fixes #29

Assigning the messageField property to the ChatBox didn't pass the correct options to the JS SDK. This PR fixes that.

bugnano commented 7 months ago

Now that we are here, it would be a good time to also implement visible as part of MessageFieldOptions.

I agree that it would be nice to implement. However, I need to think how to implement it, given that the type in TS is boolean | ConversationPredicate, and there's no easy way to express that concept in Dart.