@ -308,9 +308,7 @@ import { logger } from "../utils/logger";
import { GiveRecordWithContactInfo } from "../interfaces/give" ;
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin" ;
import { createNotifyHelpers , TIMEOUTS } from "@/utils/notify" ;
import {
NOTIFY_CONTACT_LOADING_ISSUE ,
} from "@/constants/notifications" ;
import { NOTIFY_CONTACT_LOADING_ISSUE } from "@/constants/notifications" ;
import * as Package from "../../package.json" ;
/ / c o n s o l i d a t e t h i s w i t h G i v e A c t i o n C l a i m i n s r c / i n t e r f a c e s / c l a i m s . t s
@ -636,42 +634,6 @@ export default class HomeView extends Vue {
}
}
/ * *
* Loads user settings from database using ultra - concise mixin
* Used for displaying settings in feed and actions
*
* @ internal
* Called by mounted ( ) and reloadFeedOnChange ( )
* /
private async loadSettings ( ) {
/ / U s e t h e c u r r e n t a c t i v e D i d ( s e t i n i n i t i a l i z e I d e n t i t y ) t o g e t u s e r - s p e c i f i c s e t t i n g s
const settings = await this . $accountSettings ( this . activeDid , {
apiServer : "" ,
activeDid : "" ,
filterFeedByVisible : false ,
filterFeedByNearby : false ,
isRegistered : false ,
} ) ;
this . apiServer = settings . apiServer || "" ;
/ / * * C R I T I C A L * * : E n s u r e c o r r e c t A P I s e r v e r f o r p l a t f o r m
await this . ensureCorrectApiServer ( ) ;
this . activeDid = settings . activeDid || "" ;
this . feedLastViewedClaimId = settings . lastViewedClaimId ;
this . givenName = settings . firstName || "" ;
this . isFeedFilteredByVisible = ! ! settings . filterFeedByVisible ;
this . isFeedFilteredByNearby = ! ! settings . filterFeedByNearby ;
this . isRegistered = ! ! settings . isRegistered ;
this . lastAckedOfferToUserJwtId = settings . lastAckedOfferToUserJwtId ;
this . lastAckedOfferToUserProjectsJwtId =
settings . lastAckedOfferToUserProjectsJwtId ;
this . searchBoxes = settings . searchBoxes || [ ] ;
this . showShortcutBvc = ! ! settings . showShortcutBvc ;
this . isAnyFeedFilterOn = checkIsAnyFeedFilterOn ( settings ) ;
}
/ * *
* Loads user contacts from database using ultra - concise mixin
* Used for displaying contact info in feed and actions
@ -686,36 +648,6 @@ export default class HomeView extends Vue {
. map ( ( c ) => c . did ) ;
}
/ * *
* Verifies user registration status with endorser service
* - Checks if unregistered user can access API
* - Updates registration status if successful
* - Preserves unregistered state on failure
*
* @ internal
* Called by mounted ( ) and initializeIdentity ( )
* /
private async checkRegistrationStatus ( ) {
if ( ! this . isRegistered && this . activeDid ) {
try {
const resp = await fetchEndorserRateLimits (
this . apiServer ,
this . axios ,
this . activeDid ,
) ;
if ( resp . status === 200 ) {
/ / U l t r a - c o n c i s e s e t t i n g s u p d a t e w i t h a u t o m a t i c c a c h e i n v a l i d a t i o n !
await this . $saveMySettings ( { isRegistered : true } ) ;
this . isRegistered = true ;
/ / F o r c e V u e t o r e - r e n d e r t h e t e m p l a t e
await this . $nextTick ( ) ;
}
} catch ( e ) {
/ / i g n o r e t h e e r r o r . . . j u s t k e e p u s u n r e g i s t e r e d
}
}
}
/ * *
* Initializes feed data
* Triggers updateAllFeed ( ) to populate activity feed