Skip to content

Commit c8db311

Browse files
fix: empty notification when new video conferences are created - #41156
1 parent eef6ac6 commit c8db311

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/new-towns-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Fixes empty notifications when video conferences are created

apps/meteor/server/services/video-conference/service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ export class VideoConfService extends ServiceClassInternal implements IVideoConf
558558
private async createMessage(call: VideoConference, createdBy?: IUser, customBlocks?: IMessage['blocks']): Promise<IMessage['_id']> {
559559
const record = {
560560
t: 'videoconf',
561-
msg: '',
561+
msg: i18n.t('Video_Conference', {
562+
lng: createdBy?.language || settings.get('Language') || 'en',
563+
}),
562564
groupable: false,
563565
blocks: customBlocks || [this.buildVideoConfBlock(call._id)],
564566
} satisfies Partial<IMessage>;

0 commit comments

Comments
 (0)