signal-desktop/ts/shims/Whisper.ts

22 lines
745 B
TypeScript
Raw Normal View History

2020-09-16 19:31:05 +00:00
// Matching Whisper.Message API
// eslint-disable-next-line max-len
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
export function getSearchResultsProps(attributes: any): any {
const model = new window.Whisper.Message(attributes);
return model.getPropsForSearchResult();
}
2020-09-16 19:31:05 +00:00
// Matching Whisper.Message API
// eslint-disable-next-line max-len
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
export function getBubbleProps(attributes: any): any {
const model = new window.Whisper.Message(attributes);
return model.getPropsForBubble();
2019-01-14 21:49:58 +00:00
}
2019-10-17 18:22:07 +00:00
2020-09-16 19:31:05 +00:00
export function showSettings(): void {
2019-10-17 18:22:07 +00:00
window.showSettings();
}