swift - How to retrieve the last message from Quickblox in iOS? -


i send message chat dialog not able retreive last messages.

how the last messages chat dialog id , and forwards recipient ios?

if have been joined room, access lastmessagetext directly:

dialog.lastmessagetext 

or last message id using qbrequest:

qbrequest.messageswithdialogid("id",     extendedrequest: ["sort_desc" : "date_sent", "limit" : 1],     forpage: nil,     successblock: { (response, messages, page) -> void in         println(messages)     },     errorblock: { (response) -> void in         println(response)     } ) 

Comments

Popular posts from this blog

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

c# - Specify IP End Point in FiddlerCore -

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -