Method: MatrixSdk::Room#set_account_data

Defined in:
lib/matrix_sdk/room.rb

#set_account_data(type, account_data) ⇒ Object

Stores a custom entry into the room-specific account data

Parameters:

  • type (String)

    the data type to store

  • account_data (Hash)

    the data to store



323
324
325
326
# File 'lib/matrix_sdk/room.rb', line 323

def (type, )
  client.api.(client.mxid, id, type, )
  true
end