|
# File jabber4r/protocol.rb, line 647
def Message.from_element(session, element)
message = Message.new(element.attr_to)
message.from = Jabber::JID.new(element.attr_from) if element.attr_from
message.type = element.attr_type
message.id = element.attr_id
message.thread = element.thread.element_data
message.body = element.body.element_data
message.xhtml = element.xhtml.element_data
message.subject = element.subject.element_data
message.oobData = element.x.element_data
message.session=session
return message
end
|