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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

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

python - How to remove the Xframe Options header in django? -