2020-10-30 15:34:04 -05:00
|
|
|
// Copyright 2019-2020 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-09-16 12:31:05 -07: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 {
|
2019-05-31 15:42:01 -07:00
|
|
|
const model = new window.Whisper.Message(attributes);
|
|
|
|
|
|
|
|
return model.getPropsForBubble();
|
2019-01-14 13:49:58 -08:00
|
|
|
}
|
2019-10-17 11:22:07 -07:00
|
|
|
|
2020-09-16 12:31:05 -07:00
|
|
|
export function showSettings(): void {
|
2019-10-17 11:22:07 -07:00
|
|
|
window.showSettings();
|
|
|
|
}
|