Add notification viewed sync and header badge dot
This commit is contained in:
7
API.js
7
API.js
@@ -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"){
|
||||
|
||||
Reference in New Issue
Block a user