Revert "Revert "Revert "Link to message thread"""

This reverts commit ee8dc05b22.
This commit is contained in:
M66B
2021-04-12 11:08:26 +02:00
parent 31d8662c16
commit 6a433c4252
3 changed files with 6 additions and 15 deletions

View File

@@ -4825,11 +4825,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (!TextUtils.isEmpty(message.subject))
result.put("subject", message.subject);
String link = "message://" + BuildConfig.APPLICATION_ID + "/" + message.id;
Document document = JsoupEx.parse(file);
Element a = document.createElement("a");
a.text(context.getString(R.string.app_name));
a.attr("href", message.getLink());
a.attr("href", link);
document.body().appendElement("p").appendChild(a);