[WIP] Fix tauri notifications

This commit is contained in:
Vladimir Stoilov
2024-12-03 17:28:40 +02:00
parent d15ede9f53
commit 5ae261f062
7 changed files with 39 additions and 35 deletions

View File

@@ -37,7 +37,7 @@ func (i *OSIntegration) Initialize() error {
return nil
}
// CleanUp releases any resourses allocated during initializaion.
// CleanUp releases any resources allocated during initialization.
func (i *OSIntegration) CleanUp() error {
if i.os.dll != nil {
return i.os.dll.Release()

View File

@@ -238,14 +238,14 @@ func updateListIndex() error {
func ResolveListIDs(ids []string) ([]string, error) {
index, err := getListIndexFromCache()
if err != nil {
if errors.Is(err, database.ErrNotFound) {
if err := updateListIndex(); err != nil {
return nil, err
}
// if errors.Is(err, database.ErrNotFound) {
// if err := updateListIndex(); err != nil {
// return nil, err
// }
// retry resolving IDs
return ResolveListIDs(ids)
}
// // retry resolving IDs
// return ResolveListIDs(ids)
// }
log.Errorf("failed to resolved ids %v: %s", ids, err)
return nil, err