From 29ade9784fe65ecd686b5e8e18d84e6acc30b37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 14 Mar 2020 22:43:44 +0100 Subject: Direct message service --- src/identity.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/identity.cpp') diff --git a/src/identity.cpp b/src/identity.cpp index 8f606ae..3cba97c 100644 --- a/src/identity.cpp +++ b/src/identity.cpp @@ -58,6 +58,13 @@ Stored Identity::keyMessage() const return p->keyMessage; } +bool Identity::sameAs(const Identity & other) const +{ + // TODO: proper identity check + return p->data[0]->data->keyIdentity == + other.p->data[0]->data->keyIdentity; +} + optional Identity::ref() const { if (p->data.size() == 1) -- cgit v1.2.3