Rageshake: add label depending on unifiedpush distributor

Change-Id: I1fe04cd1dc022658a1e22cd1df579489aaac5ccb
This commit is contained in:
SpiritCroc 2021-08-22 15:20:26 +02:00
parent 9211d3c4d9
commit 2c8b766aa1
1 changed files with 7 additions and 0 deletions

View File

@ -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]")