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 : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -