From 2c8b766aa10612c532c7c2c0503b847a62e781e7 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 22 Aug 2021 15:20:26 +0200 Subject: [PATCH] Rageshake: add label depending on unifiedpush distributor Change-Id: I1fe04cd1dc022658a1e22cd1df579489aaac5ccb --- .../java/im/vector/app/features/rageshake/BugReporter.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/rageshake/BugReporter.kt b/vector/src/main/java/im/vector/app/features/rageshake/BugReporter.kt index f82a7af407..d8e24e4099 100755 --- a/vector/src/main/java/im/vector/app/features/rageshake/BugReporter.kt +++ b/vector/src/main/java/im/vector/app/features/rageshake/BugReporter.kt @@ -332,6 +332,13 @@ class BugReporter @Inject constructor( if (canContact) { builder.addFormDataPart("label", "can contact") } + if (UPHelper.isEmbeddedDistributor(context)) { + builder.addFormDataPart("label", "unifiedpush:fcm") + } else if (UPHelper.hasEndpoint(context)) { + builder.addFormDataPart("label", "unifiedpush:custom") + } else { + builder.addFormDataPart("label", "unifiedpush:none") + } // Special for Element //builder.addFormDataPart("label", "[SchildiChat]")