-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add room events to timeline #646
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
This reverts commit 507b428.
src/app/organisms/room/common.jsx
Outdated
switch (type) { | ||
case 'm.room.name': return makeReturnObj('edit', tJSXMsgs.roomNameChanged(senderName, content.name)); | ||
case 'm.room.topic': return makeReturnObj('edit', tJSXMsgs.roomTopicChanged(senderName)); | ||
case 'm.room.avatar': return makeReturnObj('edit', tJSXMsgs[content.url ? 'roomAvatarChanged' : 'roomAvatarRemoved'](senderName)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always a good practice to have deafult case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case we want the case to fall through if it's not handled by any of these cases, so that it can be caught by the second switch/case a little bit below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a minor change is required.
case 'edit': | ||
iconSrc = HashIC; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case 'edit': | |
iconSrc = HashIC; | |
break; | |
case 'room-profile': | |
iconSrc = HashIC; | |
break; |
variant
propTypes for this is also missing.
this exists in and was merged with #1346 |
Description
This adds room name and topic changes to the room timeline.
Type of change
Checklist:
Preview: https://62f6373d02985a2f943f21ab--pr-cinny.netlify.app
⚠️ Exercise caution. Use test accounts. ⚠️