Provide packet type for requesting information between client and module
In order for E2EE to function, both actors will have to be able to request information/action from each other.
Here are two examples:
- when a new device is registered, it has to send a
m.new_device
event to every room that has E2EE enabled, the module will have to request this information from the client - when the client wants to enable E2EE in a room, it will have to ask the module to formulate a
m.room.encryption
state event, that enables the correct encryption algorithm (currently only one available, but will likely change as time goes on) and forward it to the client
For both of these kinds of actions packet types will have to exist, in order to support them.
Include the following things in the documentation:
-
extend C2MPacket by a header
field -
M2CPacketType::RequestInfo
-
C2MPacketType::ProvideInfo
-
C2MPacketType::ActionReq
(Code) -
C2MPacketType::ActionRsp
(Code) -
C2MPacketType::ActionReq
(Docs) -
C2MPacketType::ActionRsp
(Docs)
Edited by Johannes Hayeß