Method: Blather::Stanza::Message#chat_state

Defined in:
lib/blather/stanza/message.rb

#chat_stateSymbol

Get the message chat state

Returns:

  • (Symbol)


360
361
362
363
364
# File 'lib/blather/stanza/message.rb', line 360

def chat_state
  if (elem = find_first('ns:*', :ns => CHAT_STATE_NS)) && VALID_CHAT_STATES.include?(name = elem.name.to_sym)
    name
  end
end