Method: MatrixSdk::Protocols::CS#set_room_avatar

Defined in:
lib/matrix_sdk/protocols/cs.rb

#set_room_avatar(room_id, url, **params) ⇒ Response

Sets the avatar URL for a room

Parameters:

  • room_id (MXID, String)

    The room ID to work on

  • url (String, URI)

    The new avatar URL for the room

  • params (Hash)

    Extra options to set on the request, see #send_state_event

Returns:

  • (Response)

    The resulting state event

See Also:



570
571
572
573
574
575
# File 'lib/matrix_sdk/protocols/cs.rb', line 570

def set_room_avatar(room_id, url, **params)
  content = {
    url: url
  }
  send_state_event(room_id, 'm.room.avatar', content, params)
end