From 0bcef826baaa6a335d8fddafdbebd00fbf421c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Fri, 15 Dec 2023 22:13:36 +0100 Subject: Use extended identity data for name --- src/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/message.cpp') diff --git a/src/message.cpp b/src/message.cpp index 8ae1601..a9d6139 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -69,7 +69,7 @@ Ref DirectMessageData::store(const Storage & st) const for (const auto & prev : prev) items.emplace_back("PREV", prev.ref()); if (from) - items.emplace_back("from", from->ref().value()); + items.emplace_back("from", from->extRef().value()); if (time) items.emplace_back("time", *time); if (text) @@ -373,7 +373,7 @@ DirectMessage DirectMessageService::send(const Identity & to, const string & tex auto threads = loc->shared(); msg = st.store(DirectMessageData { .prev = threads.thread(to).p->head, - .from = server.identity().finalOwner(), + .from = loc->identity()->finalOwner(), .time = ZonedTime::now(), .text = text, }); -- cgit v1.2.3