profile: save lnaddress to lud16 instead of lud06 and vice versa

This commit is contained in:
Yuki Kishimoto
2022-12-26 01:54:50 +01:00
committed by William Casarin
parent e7b2cc9df1
commit 2f0bf20845

View File

@@ -84,8 +84,8 @@ struct EditMetadataView: View {
website: website,
nip05: nip05.isEmpty ? nil : nip05,
picture: picture.isEmpty ? nil : picture,
lud06: ln.contains("@") ? ln : nil,
lud16: ln.contains("@") ? nil : ln
lud06: ln.contains("@") ? nil : ln,
lud16: ln.contains("@") ? ln : nil
);
let m_metadata_ev = make_metadata_event(keypair: damus_state.keypair, metadata: metadata)