The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/modules/core-apps/banner.module.ts

18 lines
455 B

import { IUiKitCoreApp } from '../../sdk/types/IUiKitCoreApp';
import { Banner } from '../../sdk';
export class BannerModule implements IUiKitCoreApp {
appId = 'banner-core';
// when banner view is closed we need to dissmiss that banner for that user
async viewClosed(payload: any): Promise<any> {
const {
payload: {
view: { viewId: bannerId },
},
user: { _id: userId },
} = payload;
return Banner.dismiss(userId, bannerId);
}
}