0
如何更新服務器中已發送的QBChatMessage?對於例如消息發送/傳遞後,如何更新文本或自定義參數。還有那些發送和交付後無法更改或更新的參數?如何在Quickblox中更新已發送的消息IOS
以下是Quickblox Android上的link to the snippet,這似乎也是如此。這在IOS中如何實現?
如何更新服務器中已發送的QBChatMessage?對於例如消息發送/傳遞後,如何更新文本或自定義參數。還有那些發送和交付後無法更改或更新的參數?如何在Quickblox中更新已發送的消息IOS
以下是Quickblox Android上的link to the snippet,這似乎也是如此。這在IOS中如何實現?
有在QBRequest方法:
/**
Update existing chat message - mark it as read.
@param message Сhat message to update.
@param successBlock Block with response instance if request succeded.
@param errorBlock Block with response instance if request failed.
@return An instance of QBRequest for cancel operation mainly.
*/
+ (QBRequest *)updateMessage:(QBChatMessage *)message
successBlock:(nullable void(^)(QBResponse *response))successBlock
errorBlock:(nullable QBRequestErrorBlock)errorBlock;
用法是一樣的android漂亮多了。在這裏您可以閱讀哪些字段可以更新:http://quickblox.com/developers/Chat#Fields_to_update_2