Handle direct messaging correctly #2

Closed
opened 2019-01-13 10:15:19 +00:00 by Dennis · 1 comment
Owner
  • At this moment, the bot creates a room with new users. This should be a a direct room:
{
    "content": {
        "@bob:example.com": [
            "!abcdefgh:example.com",
            "!hgfedcba:example.com"
        ]
    },
    "type": "m.direct"
}
  • When looking for a room to send a private message in with send_message_private_public(), the room does not check whether a room is a direct room or not.
- [x] At this moment, the bot creates a room with new users. This should be a a direct room: ```json { "content": { "@bob:example.com": [ "!abcdefgh:example.com", "!hgfedcba:example.com" ] }, "type": "m.direct" } ``` - [x] When looking for a room to send a private message in with `send_message_private_public()`, the room does not check whether a room is a direct room or not.
Dennis self-assigned this 2019-01-13 10:15:19 +00:00
Dennis added the
enhancement
label 2019-01-13 10:15:19 +00:00
Author
Owner

The second item is not added in 9e139a0f3e. It does not matter whether a room is marked private or not. If there is a room with only the requesting user and the bot, it can be used. It would not make sense to open yet another room.

The second item is *not* added in 9e139a0f3ee67fd363c7ffc6e62c7a6aa47c2204. It does not matter whether a room is marked private or not. If there is a room with only the requesting user and the bot, it can be used. It would not make sense to open yet another room.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dennis/plugable-matrix-bot#2
No description provided.