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
2 changes: 1 addition & 1 deletion Mobile-Expensify
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1009018709
versionName "9.1.87-9"
versionCode 1009018711
versionName "9.1.87-11"
// Supported language variants must be declared here to avoid from being removed during the compilation.
// This also helps us to not include unnecessary language variants in the APK.
resConfigs "en", "es"
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>9.1.87.9</string>
<string>9.1.87.11</string>
<key>FullStory</key>
<dict>
<key>OrgId</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NotificationServiceExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>9.1.87</string>
<key>CFBundleVersion</key>
<string>9.1.87.9</string>
<string>9.1.87.11</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/ShareViewController/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>9.1.87</string>
<key>CFBundleVersion</key>
<string>9.1.87.9</string>
<string>9.1.87.11</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
Expand Down
4 changes: 2 additions & 2 deletions 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": "9.1.87-9",
"version": "9.1.87-11",
"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
5 changes: 0 additions & 5 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,6 @@ const CONST = {
ACTIONABLE_ADD_PAYMENT_CARD: 'ACTIONABLEADDPAYMENTCARD',
ACTIONABLE_JOIN_REQUEST: 'ACTIONABLEJOINREQUEST',
ACTIONABLE_MENTION_WHISPER: 'ACTIONABLEMENTIONWHISPER',
ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER: 'ACTIONABLEMENTIONINVITETOSUBMITEXPENSECONFIRMWHISPER',
ACTIONABLE_REPORT_MENTION_WHISPER: 'ACTIONABLEREPORTMENTIONWHISPER',
ACTIONABLE_TRACK_EXPENSE_WHISPER: 'ACTIONABLETRACKEXPENSEWHISPER',
POLICY_EXPENSE_CHAT_WELCOME_WHISPER: 'POLICYEXPENSECHATWELCOMEWHISPER',
Expand Down Expand Up @@ -1289,12 +1288,8 @@ const CONST = {
},
ACTIONABLE_MENTION_WHISPER_RESOLUTION: {
INVITE: 'invited',
INVITE_TO_SUBMIT_EXPENSE: 'inviteToSubmitExpense',
NOTHING: 'nothing',
},
ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER: {
DONE: 'done',
},
ACTIONABLE_TRACK_EXPENSE_WHISPER_RESOLUTION: {
NOTHING: 'nothing',
},
Expand Down
3 changes: 1 addition & 2 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6304,8 +6304,7 @@ const translations = {
levelThreeResult: 'Nachricht aus dem Kanal entfernt, anonyme Warnung gesendet und Nachricht zur Überprüfung gemeldet.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Zum Einreichen von Ausgaben einladen',
inviteToChat: 'Nur zum Chatten einladen',
invite: 'Lade sie ein',
nothing: 'Nichts tun',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
3 changes: 1 addition & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6273,8 +6273,7 @@ const translations = {
levelThreeResult: 'Message removed from channel plus anonymous warning and message is reported for review.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Invite to submit expenses',
inviteToChat: 'Invite to chat only',
invite: 'Invite them',
nothing: 'Do nothing',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
3 changes: 1 addition & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6737,8 +6737,7 @@ const translations = {
copied: '¡Copiado!',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Invitar a enviar gastos',
inviteToChat: 'Invitar solo a chatear',
invite: 'Invitar',
nothing: 'No hacer nada',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
3 changes: 1 addition & 2 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6316,8 +6316,7 @@ const translations = {
levelThreeResult: 'Message supprimé du canal avec un avertissement anonyme et le message est signalé pour examen.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Inviter à soumettre des dépenses',
inviteToChat: 'Inviter uniquement à discuter',
invite: 'Invitez-les',
nothing: 'Ne rien faire',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
5 changes: 2 additions & 3 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6319,9 +6319,8 @@ const translations = {
levelThreeResult: 'Messaggio rimosso dal canale più avviso anonimo e messaggio segnalato per revisione.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Invita a inviare le spese',
inviteToChat: 'Invita solo a chattare',
nothing: 'Non fare nulla',
invite: 'Invitali',
nothing: 'Do nothing',
},
actionableMentionJoinWorkspaceOptions: {
accept: 'Accetta',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6277,8 +6277,7 @@ const translations = {
levelThreeResult: 'チャンネルからメッセージが削除され、匿名の警告が行われ、メッセージがレビューのために報告されました。',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: '経費の提出に招待する',
inviteToChat: 'チャットのみ招待',
invite: '招待する',
nothing: '何もしない',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
5 changes: 2 additions & 3 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6311,9 +6311,8 @@ const translations = {
levelThreeResult: 'Bericht verwijderd uit kanaal plus anonieme waarschuwing en bericht is gerapporteerd voor beoordeling.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Uitnodigen om onkosten in te dienen',
inviteToChat: 'Alleen uitnodigen om te chatten',
nothing: 'Niets doen',
invite: 'Nodig hen uit',
nothing: 'Do nothing',
},
actionableMentionJoinWorkspaceOptions: {
accept: 'Accepteren',
Expand Down
5 changes: 2 additions & 3 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6296,9 +6296,8 @@ const translations = {
levelThreeResult: 'Wiadomość usunięta z kanału, dodano anonimowe ostrzeżenie, a wiadomość została zgłoszona do przeglądu.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Zaproś do przesyłania wydatków',
inviteToChat: 'Zaproś tylko do czatu',
nothing: 'Nie rób nic',
invite: 'Zaproś ich',
nothing: 'Do nothing',
},
actionableMentionJoinWorkspaceOptions: {
accept: 'Akceptuj',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6309,8 +6309,7 @@ const translations = {
levelThreeResult: 'Mensagem removida do canal, além de um aviso anônimo, e a mensagem foi relatada para revisão.',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: 'Convidar para enviar despesas',
inviteToChat: 'Convidar apenas para conversar',
invite: 'Convide-os',
nothing: 'Não faça nada',
},
actionableMentionJoinWorkspaceOptions: {
Expand Down
5 changes: 2 additions & 3 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6197,9 +6197,8 @@ const translations = {
levelThreeResult: '消息已从频道中移除,并收到匿名警告,消息已提交审核。',
},
actionableMentionWhisperOptions: {
inviteToSubmitExpense: '邀请提交费用',
inviteToChat: '仅邀请聊天',
nothing: '什么都不做',
invite: '邀请他们',
nothing: 'Do nothing',
},
actionableMentionJoinWorkspaceOptions: {
accept: '接受',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type CONST from '@src/CONST';

type ResolveActionableMentionWhisperParams = {
reportActionID: string;
resolution: ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION> | ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER>;
resolution: ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION>;
};

export default ResolveActionableMentionWhisperParams;
7 changes: 0 additions & 7 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,6 @@ function isActionableMentionWhisper(reportAction: OnyxEntry<ReportAction>): repo
return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_WHISPER);
}

function isActionableMentionInviteToSubmitExpenseConfirmWhisper(
reportAction: OnyxEntry<ReportAction>,
): reportAction is ReportAction<typeof CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER> {
return isActionOfType(reportAction, CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER);
}

/**
* Checks if a given report action corresponds to an actionable report mention whisper.
* @param reportAction
Expand Down Expand Up @@ -2997,7 +2991,6 @@ export {
isActionableJoinRequest,
isActionableJoinRequestPending,
isActionableMentionWhisper,
isActionableMentionInviteToSubmitExpenseConfirmWhisper,
isActionableReportMentionWhisper,
isActionableTrackExpense,
isExpenseChatWelcomeWhisper,
Expand Down
42 changes: 3 additions & 39 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ import {setDownload} from './Download';
import {close} from './Modal';
import navigateFromNotification from './navigateFromNotification';
import {getAll} from './PersistedRequests';
import {addMembersToWorkspace, buildAddMembersToWorkspaceOnyxData, buildRoomMembersOnyxData} from './Policy/Member';
import {buildAddMembersToWorkspaceOnyxData, buildRoomMembersOnyxData} from './Policy/Member';
import {createPolicyExpenseChats} from './Policy/Policy';
import {
createUpdateCommentMatcher,
Expand Down Expand Up @@ -4362,37 +4362,10 @@ function clearNewRoomFormError() {
function resolveActionableMentionWhisper(
reportID: string | undefined,
reportAction: OnyxEntry<ReportAction>,
resolution: ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION> | ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER>,
policy?: OnyxEntry<Policy>,
resolution: ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION>,
) {
if (!reportAction || !reportID) {
return;
}

if (ReportActionsUtils.isActionableMentionWhisper(reportAction) && resolution === CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION.INVITE_TO_SUBMIT_EXPENSE) {
const actionOriginalMessage = ReportActionsUtils.getOriginalMessage(reportAction);

const policyID = policy?.id;

if (actionOriginalMessage && policyID) {
const currentUserDetails = allPersonalDetails?.[getCurrentUserAccountID()];
const welcomeNoteSubject = `# ${currentUserDetails?.displayName ?? ''} invited you to ${policy?.name ?? 'a workspace'}`;
const welcomeNote = Localize.translateLocal('workspace.common.welcomeNote');
const policyMemberAccountIDs = Object.values(getMemberAccountIDsForWorkspace(policy?.employeeList, false, false));
addMembersToWorkspace(
{
[`${actionOriginalMessage.inviteeEmails?.at(0)}`]: actionOriginalMessage.inviteeAccountIDs?.at(0) ?? CONST.DEFAULT_NUMBER_ID,
},
`${welcomeNoteSubject}\n\n${welcomeNote}`,
policyID,
policyMemberAccountIDs,
CONST.POLICY.ROLE.USER,
);
}
}

const message = ReportActionsUtils.getReportActionMessage(reportAction);
if (!message) {
if (!message || !reportAction || !reportID) {
return;
}

Expand Down Expand Up @@ -4466,14 +4439,6 @@ function resolveActionableMentionWhisper(
API.write(WRITE_COMMANDS.RESOLVE_ACTIONABLE_MENTION_WHISPER, parameters, {optimisticData, failureData});
}

function resolveActionableMentionConfirmWhisper(
reportID: string | undefined,
reportAction: OnyxEntry<ReportAction>,
resolution: ValueOf<typeof CONST.REPORT.ACTIONABLE_MENTION_INVITE_TO_SUBMIT_EXPENSE_CONFIRM_WHISPER>,
) {
resolveActionableMentionWhisper(reportID, reportAction, resolution);
}

function resolveActionableReportMentionWhisper(
reportId: string | undefined,
reportAction: OnyxEntry<ReportAction>,
Expand Down Expand Up @@ -5921,7 +5886,6 @@ export {
removeFromGroupChat,
removeFromRoom,
resolveActionableMentionWhisper,
resolveActionableMentionConfirmWhisper,
resolveActionableReportMentionWhisper,
resolveConciergeCategoryOptions,
savePrivateNotesDraft,
Expand Down
Loading
Loading