From 8c88ea3bfb692d7db1ed11fa252f003ed1286daa Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 11 May 2022 22:41:21 +0200 Subject: [PATCH] show context of Webxdc window show the chat name in front of the webxdc name to - prevent phishing (the window will not show just the name of your bank) - give the user an idea about where the webxdc sends messages to (important eg. when using the same webxdc from different chats) --- src/org/thoughtcrime/securesms/WebxdcActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/WebxdcActivity.java b/src/org/thoughtcrime/securesms/WebxdcActivity.java index 59ec4c658..17306e095 100644 --- a/src/org/thoughtcrime/securesms/WebxdcActivity.java +++ b/src/org/thoughtcrime/securesms/WebxdcActivity.java @@ -84,9 +84,10 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE Util.runOnAnyBackgroundThread(() -> { JSONObject info = this.dcAppMsg.getWebxdcInfo(); + String chatName = WebxdcActivity.this.dcContext.getChat(WebxdcActivity.this.dcAppMsg.getChatId()).getName(); Util.runOnMain(() -> { try { - getSupportActionBar().setTitle(info.getString("name")); + getSupportActionBar().setTitle(chatName + " – " + info.getString("name")); } catch (Exception e) { e.printStackTrace(); }