WahidNasri / flutter-mqtt-chat-client

A Chat app developed with Flutter, it uses MQTT protocol
GNU General Public License v3.0
147 stars 34 forks source link

Functions not normal #6

Closed lucasjinreal closed 3 years ago

lucasjinreal commented 3 years ago

Finally after fix some bugs in your backend server java code, I got it run now.

image

But some problems really bad:

1). the messages can not sort by time (not distinguish coming msgs or my msgs, it should natrually sort by time, but now , its not;

2) Can not send Chinese.

4) Can not send picture.

WahidNasri commented 3 years ago

The Chinese issue is related to Flyer UI package, we use it to provide a POC fastly, but it's not the best option there.

Pictures (And files) are sent as base64, our broken reads the messages and transform the payload to a regular format (json)

lucasjinreal commented 3 years ago

I fixed it now

lucasjinreal commented 3 years ago

@WahidNasri BTW, do u know how to make flyerUI show receiver avatar? Currently it doesn showing

WahidNasri commented 3 years ago

@jinfagang make sure the user has an avatar URL on the types.user object. then use showUserAvatars: true

lucasjinreal commented 3 years ago

@WahidNasri In example app, on the top banner, the avatar can be shown right? But in your bubble, leftest avatar doesn't showing.

Why? I noticed showUserAvatars already enabled. How should I check if types.user has right url? Seems currently user avatar url is broken