Add notification viewed sync and header badge dot

This commit is contained in:
Adolfo Reyna
2026-02-20 22:15:07 -05:00
parent cc9ca1d075
commit 0ba5d7bd0d
3 changed files with 55 additions and 2 deletions

7
API.js
View File

@@ -310,6 +310,13 @@ const API = {
}
return postCall("/user/myProfile", {profile, data});
},
markNotificationsViewed() {
if (CurrentProfile) {
delete userNameCache[CurrentProfile];
delete failedProfileCache[CurrentProfile];
}
return postCall("/user/notifications/viewed", {});
},
searchProfiles(query){
return getCall("/user/search", query ? {query} : {}).then((data)=>{
if(data.status == "ok"){