From 1a12cb3b8c7961fcfcac636efd292d0ab8d06ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Fri, 15 Sep 2023 12:56:45 -0400 Subject: [PATCH] misc: replace Swarm Created message in 1:1 Change-Id: I71388da217d4912a4f89c36e8a539cdc65f40097 GitLab: #1342 --- src/libclient/api/interaction.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libclient/api/interaction.h b/src/libclient/api/interaction.h index 1c07b320..be83d478 100644 --- a/src/libclient/api/interaction.h +++ b/src/libclient/api/interaction.h @@ -355,7 +355,11 @@ struct Info if (type == Type::CONTACT) { authorUri = accountURI == message["uri"] ? "" : message["uri"]; } else if (type == Type::INITIAL) { - body = QObject::tr("Swarm created"); + if (message["mode"] == "0") { + body = QObject::tr("Private conversation created"); + } else { + body = QObject::tr("Swarm created"); + } } else if (type == Type::CALL) { duration = message["duration"].toInt() / 1000; if (message.contains("confId"))