From 6e6f0b9fa8dd5ddd24dc31cdf940159f11a96372 Mon Sep 17 00:00:00 2001 From: Arvid Lunnemark Date: Mon, 27 Jun 2022 22:22:43 -0700 Subject: [PATCH] daemon.protoo changes --- daemon/rpc/daemon_rpc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/rpc/daemon_rpc.cc b/daemon/rpc/daemon_rpc.cc index e24d2266..88fbc1ef 100644 --- a/daemon/rpc/daemon_rpc.cc +++ b/daemon/rpc/daemon_rpc.cc @@ -348,8 +348,10 @@ Status DaemonRpc::GetOutgoingFriendRequests( } auto [friend_info, message] = conversion_result.value(); // add to response - getOutgoingFriendRequestsResponse->add_friend_infos()->CopyFrom( - friend_info); + asphrdaemon::FriendRequest friend_request; + friend_request->set_friend_info()->CopyFrom(friend_info); + friend_request->set_message(message); + getOutgoingFriendRequestsResponse->add_friend_requests(friend_request); getOutgoingFriendRequestsResponse->add_messages(message); } } catch (const rust::Error& e) {