kopia lustrzana https://gitlab.com/jaywink/federation
Tag thread rooms as low priority
So Element and other clients that respect tags don't clutter rooms should the appservice user use a client.merge-requests/165/head
rodzic
7973f3e87c
commit
a4228242de
|
@ -161,7 +161,15 @@ class MatrixRoomMessage(Post, MatrixEntityMixin):
|
|||
"endpoint": f"{super().get_endpoint()}/join/{self._thread_room_id}?user_id={self.mxid}",
|
||||
"payload": {},
|
||||
})
|
||||
|
||||
# Tag the thread room as low priority
|
||||
payloads.append({
|
||||
"endpoint": f"{super().get_endpoint()}/user/{self.mxid}/rooms/{self._thread_room_id}/tags/m.lowpriority"
|
||||
f"?user_id={self.mxid}",
|
||||
"payload": {
|
||||
"order": 0,
|
||||
},
|
||||
"method": "put",
|
||||
})
|
||||
return payloads
|
||||
|
||||
def pre_send(self):
|
||||
|
|
Ładowanie…
Reference in New Issue