-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow system account chat to be listed in LHN, fix chat icons #41290
Changes from all commits
1cbeb47
feb523c
087bae4
d5979e8
7f2c9db
f92eed9
adaf3e7
6c8f3c7
926d7af
6158dd6
570851a
1648f61
a02b8de
76fcf1e
a794af4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1867,7 +1867,7 @@ function getOptions( | |
allPersonalDetailsOptions = lodashOrderBy(allPersonalDetailsOptions, [(personalDetail) => personalDetail.text?.toLowerCase()], 'asc'); | ||
} | ||
|
||
const optionsToExclude: Option[] = [{login: CONST.EMAIL.NOTIFICATIONS}]; | ||
const optionsToExclude: Option[] = []; | ||
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. |
||
|
||
// If we're including selected options from the search results, we only want to exclude them if the search input is empty | ||
// This is because on certain pages, we show the selected options at the top when the search input is empty | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,11 +90,12 @@ function HeaderView({ | |
const isSelfDM = ReportUtils.isSelfDM(report); | ||
const isGroupChat = ReportUtils.isGroupChat(report) || ReportUtils.isDeprecatedGroupDM(report); | ||
const isOneOnOneChat = ReportUtils.isOneOnOneChat(report); | ||
const isSystemChat = ReportUtils.isSystemChat(report); | ||
|
||
// For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants | ||
const participants = Object.keys(report?.participants ?? {}) | ||
.map(Number) | ||
.filter((accountID) => accountID !== session?.accountID || !isOneOnOneChat) | ||
.filter((accountID) => accountID !== session?.accountID || (!isOneOnOneChat && !isSystemChat)) | ||
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. Shouldn't this be 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. No, because |
||
.slice(0, 5); | ||
const isMultipleParticipant = participants.length > 1; | ||
|
||
|
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.
This change caused this issue
We have implemented show default system chat message
But we din't add condition for system chat for sidebar