This commit is contained in:
pa
2026-02-18 18:14:21 +09:00
parent a13b197d06
commit 7288995c73
22 changed files with 198 additions and 110 deletions

View File

@@ -76,7 +76,7 @@
.editInviteMessage(params, messageType, slot)
.catch((err) => {
console.error('Invite response message update failed', err);
toast.error('Error');
toast.error(t('message.error'));
})
.then((args) => {
if (args.json[slot].message === I.messageSlot.message) {
@@ -84,7 +84,7 @@
toast.error(errorMessage);
throw new Error(errorMessage);
} else {
toast('Invite message updated');
toast(t('message.invite.message_updated'));
}
return args;
});
@@ -98,13 +98,13 @@
.sendInviteResponsePhoto(params, I.invite.id)
.catch((err) => {
console.error('Invite response photo failed', err);
toast.error('Error');
toast.error(t('message.error'));
})
.then((args) => {
notificationRequest.hideNotification({
notificationId: I.invite.id
});
toast.success('Invite response message sent');
toast.success(t('message.invite.response_sent'));
return args;
})
.finally(() => {
@@ -115,13 +115,13 @@
.sendInviteResponse(params, I.invite.id)
.catch((err) => {
console.error('Invite response failed', err);
toast.error('Error');
toast.error(t('message.error'));
})
.then((args) => {
notificationRequest.hideNotification({
notificationId: I.invite.id
});
toast.success('Invite response message sent');
toast.success(t('message.invite.response_sent'));
return args;
})
.finally(() => {

View File

@@ -68,7 +68,7 @@
notificationRequest.hideNotification({
notificationId: D.invite.id
});
toast.success('Invite response photo message sent');
toast.success(t('message.invite.response_photo_sent'));
return args;
})
.finally(() => {
@@ -79,13 +79,13 @@
.sendInviteResponse(params, D.invite.id)
.catch((err) => {
console.error('Invite response failed', err);
toast.error('Error');
toast.error(t('message.error'));
})
.then((args) => {
notificationRequest.hideNotification({
notificationId: D.invite.id
});
toast.success('Invite response message sent');
toast.success(t('message.invite.response_sent'));
return args;
})
.finally(() => {