This repository was archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 819
Fix displaying hidden events on threads #8555
Merged
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7065a8f
Fix avatar size and style inheritances for hidden events in the threa…
luixxiul 913b22f
Use a variable
luixxiul 1f7f1f3
yarn run lint:style --fix
luixxiul baa1ac4
Reset the comment
luixxiul 6d06fbe
Re-add padding-left override for bubble layout
luixxiul 9391502
yarn run lint:style --fix
luixxiul 010f577
Add a empty line
luixxiul 33120bb
Adjust avatar and E2E icon position inside .mx_EventTile_info
luixxiul 0b97db8
Update src/components/views/rooms/EventTile.tsx
luixxiul 573149e
Merge branch 'develop' into HiddenEvent-Thread
luixxiul b098736
Align with mx_EventTile_line
luixxiul 51cc2f6
Align mx_EventTile_line and avatar + E2E icon
luixxiul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1032,6 +1032,13 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> { | |||||||||||||
if (this.context.timelineRenderingType === TimelineRenderingType.Notification) { | ||||||||||||||
avatarSize = 24; | ||||||||||||||
needsSenderProfile = true; | ||||||||||||||
} else if (isInfoMessage || isInfoMessage && | ||||||||||||||
(this.context.timelineRenderingType === TimelineRenderingType.Thread && !this.props.continuation) | ||||||||||||||
) { | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This expression might be wrong given that it simplifies to just
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @t3chguy Would you please add suggestion for me as I am not really sure what the best solution would be? Thanks in advance!
luixxiul marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
// a small avatar, with no sender profile, for | ||||||||||||||
// joins/parts/etc | ||||||||||||||
avatarSize = 14; | ||||||||||||||
needsSenderProfile = false; | ||||||||||||||
} else if (this.context.timelineRenderingType === TimelineRenderingType.ThreadsList || | ||||||||||||||
(this.context.timelineRenderingType === TimelineRenderingType.Thread && !this.props.continuation) | ||||||||||||||
) { | ||||||||||||||
|
@@ -1040,11 +1047,6 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> { | |||||||||||||
} else if (eventType === EventType.RoomCreate || isBubbleMessage) { | ||||||||||||||
avatarSize = 0; | ||||||||||||||
needsSenderProfile = false; | ||||||||||||||
} else if (isInfoMessage) { | ||||||||||||||
// a small avatar, with no sender profile, for | ||||||||||||||
// joins/parts/etc | ||||||||||||||
avatarSize = 14; | ||||||||||||||
needsSenderProfile = false; | ||||||||||||||
} else if (this.props.layout == Layout.IRC) { | ||||||||||||||
avatarSize = 14; | ||||||||||||||
needsSenderProfile = true; | ||||||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.