diff --git a/app/client/mobile/src/card/Card.tsx b/app/client/mobile/src/card/Card.tsx index 3b923f4e..d73023c9 100644 --- a/app/client/mobile/src/card/Card.tsx +++ b/app/client/mobile/src/card/Card.tsx @@ -5,8 +5,6 @@ import { styles } from './Card.styled' export function Card({ imageUrl, name, placeholder, handle, node, select, actions, containerStyle }: { containerStyle: any, imageUrl: string, name: string, placeholder: string, handle: string, node: string, select?: () => void, actions: ReactNode[] }) { -console.log(containerStyle); - return ( diff --git a/app/client/mobile/src/contacts/Contacts.tsx b/app/client/mobile/src/contacts/Contacts.tsx index 020437f8..0ef594f6 100644 --- a/app/client/mobile/src/contacts/Contacts.tsx +++ b/app/client/mobile/src/contacts/Contacts.tsx @@ -2,12 +2,13 @@ import React from 'react'; import {Divider, Surface, IconButton, Button, Text, TextInput, useTheme} from 'react-native-paper'; import {SafeAreaView, FlatList, View} from 'react-native'; import {styles} from './Contacts.styled'; +import { Colors } from '../constants/Colors'; import {useContacts} from './useContacts.hook'; import { Card } from '../card/Card'; export function Contacts() { const { state, actions } = useContacts(); - const { colors } = useTheme(); + const theme = useTheme(); return ( @@ -36,9 +37,12 @@ export function Contacts() { const params = { guid, handle, node, name, location, description, offsync, imageUrl, cardId, status }; openContact(params); } - const status = item.offsync ? styles.offsync : styles[item.status]; + const status = item.offsync ? 'offsync' : item.status; +console.log("USING :", item.offsync, item.status, status); return ( - + + + ) }} keyExtractor={(card) => card.cardId} diff --git a/app/sdk/src/contact.ts b/app/sdk/src/contact.ts index 6a55ae4f..98068fbe 100644 --- a/app/sdk/src/contact.ts +++ b/app/sdk/src/contact.ts @@ -170,7 +170,6 @@ export class ContactModule implements Contact { for (const entry of entries) { const { key, value } = entry; if (value.item.resync) { -console.log("RESYNC ", key); value.item.resync = false; if (value.item.offsyncProfile) { try { @@ -270,6 +269,7 @@ console.log("RESYNC ", key); entry.item.profileRevision = data.notifiedProfile; await this.store.setContactCardProfileRevision(guid, id, data.notifiedProfile); } catch (err) { +console.log("OFFSYNC PROFILE: ", id); this.log.warn(err); entry.item.offsyncProfile = data.notifiedProfile; await this.store.setContactCardOffsyncProfile(guid, id, data.notifiedProfile); @@ -290,6 +290,7 @@ console.log("RESYNC ", key); await this.store.setContactCardArticleRevision(guid, id, data.notifiedArticle); this.emitArticles(id); } catch (err) { +console.log("OFFSYNC ARTICLE: ", id); this.log.warn(err); entry.item.offsyncArticle = data.notifiedArticle; await this.store.setContactCardOffsyncArticle(guid, id, data.notifiedArticle); @@ -311,6 +312,7 @@ console.log("RESYNC ", key); await this.store.setContactCardChannelRevision(guid, id, data.notifiedChannel); this.emitChannels(id); } catch (err) { +console.log("OFFSYNC CHANNEL: ", id); this.log.warn(err); entry.item.offsyncChannel = data.notifiedChannel; await this.store.setContactCardOffsyncChannel(guid, id, data.notifiedChannel); diff --git a/app/sdk/src/net/getContactChannels.ts b/app/sdk/src/net/getContactChannels.ts index 0ee3ee8f..bdbafdcb 100644 --- a/app/sdk/src/net/getContactChannels.ts +++ b/app/sdk/src/net/getContactChannels.ts @@ -6,6 +6,8 @@ export async function getContactChannels(node: string, secure: boolean, guid: st const param = revision ? `viewRevision=1&channelRevision=${revision}` : `viewRevision=1`; const endpoint = `http${secure ? "s" : ""}://${node}/content/channels?contact=${guid}.${token}&${param}&${type}`; const channels = await fetchWithTimeout(endpoint, { method: "GET" }); +console.log("GETTING: ", endpoint); checkResponse(channels.status); +consolellog("SUCCESS"); return await channels.json(); }