From 0e9e9c4d233a331e10dfb2db889fe437d0911ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 16 Feb 2020 20:18:32 +0100 Subject: Peer list in public API --- 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 00abf0b..61059ab 100644 --- a/src/identity.cpp +++ b/src/identity.cpp @@ -46,6 +46,13 @@ optional Identity::owner() const return p->owner; } +const Identity & Identity::finalOwner() const +{ + if (p->owner) + return p->owner->finalOwner(); + return *this; +} + Stored Identity::keyMessage() const { return p->keyMessage; -- cgit v1.2.3