matrix_sdk v0.1.0 MatrixSDK.Client.StateEvent View Source

Convenience functions for building state events.

Link to this section Summary

Functions

Returns a StateEvent struct of type m.room.join_rules.

Link to this section Types

Specs

t() :: %MatrixSDK.Client.StateEvent{
  content: term(),
  room_id: term(),
  state_key: term(),
  type: term()
}

Link to this section Functions

Link to this function

join_rules(room_id, body)

View Source

Returns a StateEvent struct of type m.room.join_rules.

Example

MatrixSDK.Client.StateEvent.join_rules("!someroom:matrix.org". "public")