-There's a new `pleroma:chat_mention` notification, which has this form:
+There's a new `pleroma:chat_mention` notification, which has this form. It is not given out in the notifications endpoint by default, you need to explicitly request it with `include_types[]=pleroma:chat_mention`:
```json
{
```json
{
@@ -215,8+232,17 @@ There's a new `pleroma:chat_mention` notification, which has this form:
"chat_id": "1",
"id": "10",
"content": "Hello",
"chat_id": "1",
"id": "10",
"content": "Hello",
- "account_id": "someflakeid"
+ "account_id": "someflakeid",
+ "unread": false
},
"created_at": "somedate"
}
```
},
"created_at": "somedate"
}
```
+
+### Streaming
+
+There is an additional `user:pleroma_chat` stream. Incoming chat messages will make the current chat be sent to this `user` stream. The `event` of an incoming chat message is `pleroma:chat_update`. The payload is the updated chat with the incoming chat message in the `last_message` field.
+
+### Web Push
+
+If you want to receive push messages for this type, you'll need to add the `pleroma:chat_mention` type to your alerts in the push subscription.