How to update a sent message in Quickblox IOS

前端 未结 1 689
庸人自扰
庸人自扰 2021-01-28 16:04

How do I update a sent QBChatMessage in the server? For e.g. After the message is sent/delivered, how does one update it\'s text or custom parameters. Also are there parameters

1条回答
  •  鱼传尺愫
    2021-01-28 16:32

    There is a method in 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;
    

    The usage is the same as in android pretty much. Here you can read which fields you can update: http://quickblox.com/developers/Chat#Fields_to_update_2

    0 讨论(0)
提交回复
热议问题