Skip to content

Commit

Permalink
Merge branch 'release-6.2.0' into chore/patch-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Apr 25, 2023
2 parents 4de7b05 + b504b0a commit 7600795
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/apple/lib/handleIdentityToken.ts
Expand Up @@ -5,7 +5,7 @@ import { fetch } from '../../../server/lib/http/fetch';

async function isValidAppleJWT(identityToken: string, header: any): Promise<boolean> {
const request = await fetch('https://appleid.apple.com/auth/keys', { method: 'GET' });
const applePublicKeys = (await request.json()).data.keys;
const applePublicKeys = (await request.json()).keys;
const { kid } = header;

const key = applePublicKeys.find((k: any) => k.kid === kid);
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/autotranslate/server/googleTranslate.ts
Expand Up @@ -115,7 +115,7 @@ class GoogleAutoTranslate extends AutoTranslate {
if (this.supportedLanguages[target]) {
return this.supportedLanguages[target];
}
this.supportedLanguages[target || 'en'] = result?.data?.data?.languages;
this.supportedLanguages[target || 'en'] = result?.data?.languages;
return this.supportedLanguages[target || 'en'];
}

Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/server/lib/rooms/roomTypes/livechat.ts
Expand Up @@ -31,7 +31,8 @@ roomCoordinator.add(LivechatRoomType, {
},

async getNotificationDetails(room, _sender, notificationMessage, userId) {
const title = `[Omnichannel] ${this.roomName(room, userId)}`;
const roomName = await this.roomName(room, userId);
const title = `[Omnichannel] ${roomName}`;
const text = notificationMessage;

return { title, text };
Expand Down

0 comments on commit 7600795

Please sign in to comment.