WideChat / Rocket.Chat.Android

Rocket.Chat Native Android Application
https://rocket.chat
MIT License
12 stars 6 forks source link

[Web Client] unbranded message when an invited user is already in a room #699

Closed jaytat0 closed 4 years ago

jaytat0 commented 4 years ago

When a user that's invited is already in the room then the message that shows is not VC branded:

image

Shailesh351 commented 4 years ago

Screenshot from 2019-11-03 13-09-15

@jaytat0 It seems like, it is because of the profile photo of this @rocket.cat bot. May be we forget to change the profile photo of bot in ViasatConnect.

Can you please try updating it?

jaytat0 commented 4 years ago

The user appears to not be editable via the admin console. Perhaps it needs to be modified starting here: https://github.com/WideChat/Rocket.Chat/blob/develop/server/startup/initialData.js#L21

Shailesh351 commented 4 years ago

Yes right @jaytat0. And also updating avatar from here https://github.com/WideChat/Rocket.Chat/blob/develop/private/avatars/rocketcat.png

kb0304 commented 4 years ago

Here

https://github.com/WideChat/Rocket.Chat/blob/be9f370e7a03d2673829d72774d1f21325d86802/app/ui-utils/client/lib/RoomManager.js#L329

we should change the username to that of our own bot's msg.u = msg.u || { username: 'rocket.cat' }; > msg.u = msg.u || { username: 'viasat.bot' };

ear-dev commented 4 years ago

@Shailesh351 I think that jay mentioned you were working on PWA stuff..... I can take this story if you like.... just let me know.

ear-dev commented 4 years ago

fix is here: https://github.com/WideChat/Rocket.Chat/pull/89