Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001012000
versionName "1.1.20-0"
versionCode 1001012001
versionName "1.1.20-1"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.1.20.0</string>
<string>1.1.20.1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.20.0</string>
<string>1.1.20.1</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.1.20-0",
"version": "1.1.20-1",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
7 changes: 6 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function getParticipantEmailsFromReport({sharedReportList}) {
}

/**
* Returns the title for a default room or generates one based on the participants
* Returns the title for a default room, a policy room or generates one based on the participants
*
* @param {Object} fullReport
* @param {String} chatType
Expand All @@ -142,6 +142,11 @@ function getChatReportName(fullReport, chatType) {
: '')}`;
}

// For a basic policy room, return its original name
if (ReportUtils.isPolicyRoom({chatType})) {
return fullReport.reportName;
}

const {sharedReportList} = fullReport;
return _.chain(sharedReportList)
.map(participant => participant.email)
Expand Down
5 changes: 3 additions & 2 deletions src/pages/home/HeaderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ const HeaderView = (props) => {
};
},
);
const isPolicyRoom = ReportUtils.isPolicyRoom(props.report);
const isDefaultChatRoom = ReportUtils.isDefaultRoom(props.report);
const title = isDefaultChatRoom
const title = isDefaultChatRoom || isPolicyRoom
? props.report.reportName
: _.map(displayNamesWithTooltips, ({displayName}) => displayName).join(', ');

Expand Down Expand Up @@ -145,7 +146,7 @@ const HeaderView = (props) => {
tooltipEnabled
numberOfLines={1}
textStyles={[styles.headerText]}
shouldUseFullTitle={isDefaultChatRoom}
shouldUseFullTitle={isDefaultChatRoom || isPolicyRoom}
/>
{isDefaultChatRoom && (
<ExpensifyText
Expand Down