aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-21 17:22:14 +0200
committerlain <lain@soykaf.club>2020-08-21 17:22:14 +0200
commit4bbdeadccb6f7a8474702da96b238fbf86d85b6a (patch)
treeb8f991631e215f74c56485ad80c3b43797305ace
parent8e99b48f105b57d0dd739b3e9e98137f8239bebe (diff)
downloadpleroma-4bbdeadccb6f7a8474702da96b238fbf86d85b6a.tar.gz
.
-rw-r--r--lib/pleroma/web/matrix_controller.ex9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/pleroma/web/matrix_controller.ex b/lib/pleroma/web/matrix_controller.ex
index c7584046b..11cb57142 100644
--- a/lib/pleroma/web/matrix_controller.ex
+++ b/lib/pleroma/web/matrix_controller.ex
@@ -284,7 +284,14 @@ defmodule Pleroma.Web.MatrixController do
leave: %{}
},
account_data: %{
- events: []
+ events: [
+ %{
+ type: "m.direct",
+ content: %{
+ matrix_name(user) => Map.keys(chats)
+ }
+ }
+ ]
},
presence: %{
events: []