[NEW] Add author name in the info messages#1708
[NEW] Add author name in the info messages#1708youssef-md wants to merge 4 commits intoRocketChat:developfrom
Conversation
app/containers/message/Message.js
Outdated
| const Message = React.memo((props) => { | ||
| if (props.isThreadReply || props.isThreadSequential || props.isInfo) { | ||
| const thread = props.isThreadReply ? <RepliedThread {...props} /> : null; | ||
| const { username } = props.author; |
There was a problem hiding this comment.
We'll have author always?
|
Hi, does the PR only publish the username? What if on server side "full name" is activated, then it should be |
|
@localguru Mobile has a very smaller space to show all those info without breaking line. |
0a9c8b3 to
f6383cb
Compare
|
This pull request introduces 2 alerts when merging 2f294cc into 3a87872 - view on LGTM.com new alerts:
|
|
Just launched my first Rocket.Chat community today (🎉🎉🎉) and noticed this issue right away as soon as people started signing up :) Is there a reason to try and keep it to one line? It seems like the way it works on the mobile web UI looks fine with it wrapping to 2 lines most of the time. I would prefer to keep all the info (avatar, full name, username, time joined, joined message) and have it wrap to 2 lines, rather than truncating the info. |
Congrats on your community, man! |
|
@diegolmello Thanks! I'm really excited to be building a community on Rocket.Chat. I've built many Meteor apps (been using it full-time since 2013) and also have experience building React Native apps for iOS and Android. How about I take a crack at fixing this up as my first Rocket.Chat issue? :) |
|
@dkoo761 Sure! Go ahead :) |
|
Great, thanks! |
|
@diegolmello I've got a local Rocket.Chat dev server environment up and running and am having a look through the code there before moving onto the React Native code. I've noticed that it takes about 4-5 minutes to restart after each code change. Is that normal? Seems like it would make development extremely slow. Could you share how you guys deal with that? Maybe you comment out imports or code you're not using for a specific feature or something? Also, is there a better place to be asking general dev questions like this? I've tried asking on forums.rocket.chat and on open.rocket.chat but didn't get any reply on either one. |
|
I did some profiling and made a list of everything that took more than 1 second: (#3) Total: 104,696 ms (Build App) | Top leaves: Total: 250,253 ms (Server startup) I20201007-15:26:12.951(-7)? | Top leaves: Again my apologies, I know this isn't the right place to be having this discussion, but it's currently blocking me from getting started with development. So just hoping you can point me in the right direction. |
|
@diegolmello Perfect, I'll ask there. Thanks so much! |
|
Just submitted my PR for this ^^^ |
@RocketChat/ReactNative
Closes #1689
In this PR was done: