mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Additional logging for calling service
This commit is contained in:
@@ -23,7 +23,7 @@ function isCtrlOrAlt(ev: KeyboardEvent): boolean {
|
||||
}
|
||||
|
||||
export function useActiveCallShortcuts(
|
||||
hangUp: () => unknown
|
||||
hangUp: (reason: string) => unknown
|
||||
): KeyboardShortcutHandlerType {
|
||||
return useCallback(
|
||||
ev => {
|
||||
@@ -34,7 +34,7 @@ export function useActiveCallShortcuts(
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
hangUp();
|
||||
hangUp('Keyboard shortcut');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user