signal-desktop/ts/shims/Whisper.ts

19 lines
413 B
TypeScript
Raw Normal View History

export function getSearchResultsProps(attributes: any) {
2019-01-14 21:49:58 +00:00
// @ts-ignore
const model = new window.Whisper.Message(attributes);
return model.getPropsForSearchResult();
}
export function getBubbleProps(attributes: any) {
// @ts-ignore
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
export function showSettings() {
// @ts-ignore
window.showSettings();
}