fix syncing of card profiles

This commit is contained in:
Roland Osborne 2023-01-27 12:04:34 -08:00
parent bff7471b5b
commit a1549747db
3 changed files with 6 additions and 4 deletions

View File

@ -151,8 +151,8 @@ export function useCardContext() {
// sync profile
if (card.data.setNotifiedProfile !== card.data.curNotifiedProfile) {
if (card.data.profileRevision !== card.data.curNotifiedProfile) {
const token = `${cardProfile.guid}.${cardDetail.token}`;
const message = await getContactProfile(cardProfile.node, token);
const cardToken = `${cardProfile.guid}.${cardDetail.token}`;
const message = await getContactProfile(cardProfile.node, cardToken);
await setCardProfile(token, card.id, message);
}
}

View File

@ -5,10 +5,12 @@
.ant-modal-title {
padding-top: 16px !important;
padding-left: 16px !important;
padding-right: 16px !important;
}
.ant-modal-footer {
padding-right: 16px !important;
padding-left: 16px !important;
padding-bottom: 16px !important;
}

View File

@ -158,7 +158,7 @@ export function Profile({ closeProfile }) {
</div>
)}
<Modal title="Profile Image" centered visible={state.editProfileImage} footer={editImageFooter}
style={{ padding: 16 }} onCancel={actions.clearEditProfileImage}>
bodyStyle={{ padding: 16 }} onCancel={actions.clearEditProfileImage}>
<ProfileImageWrapper>
<Cropper image={state.editImage} crop={state.crop} zoom={state.zoom} aspect={1}
@ -167,7 +167,7 @@ export function Profile({ closeProfile }) {
</Modal>
<Modal title="Profile Details" centered visible={state.editProfileDetails} footer={editDetailsFooter}
style={{ padding: 16 }} onCancel={actions.clearEditProfileDetails}>
bodyStyle={{ padding: 16 }} onCancel={actions.clearEditProfileDetails}>
<ProfileDetailsWrapper>
<div class="info">