(feat): add mobile notifications
(feat): improve mobile ui & ux
This commit is contained in:
parent
4cb38264d0
commit
13fa3d8db7
29 changed files with 6638 additions and 6094 deletions
|
|
@ -102,6 +102,7 @@ export default function Provider(props: { children: React.ReactNode }) {
|
|||
const user = await get(data.SenderId);
|
||||
|
||||
if (isTauri()) {
|
||||
if (!appFocused) return;
|
||||
const permissionGranted =
|
||||
(await isTauriNotificationPermissionGranted()) ||
|
||||
(await requestTauriNotificationPermission()) === "granted";
|
||||
|
|
|
|||
Loading…
Reference in a new issue