Closed ahmadrushdie closed 2 years ago
You can do it like this:
-(RXPromise *) markMessageRead: (id<PMessage>) message {
CCMessageWrapper * wrapper = [FirebaseNetworkAdapterModule.shared.firebaseProvider messageWrapperWithModel:message];
return [wrapper setReadStatus: bMessageReadStatusRead];
}
or:
-(RXPromise *) markMessageRead: (id<PMessage>) message {
CCMessageWrapper * wrapper = [CCMessageWrapper messageWithModel:message];
return [wrapper setReadStatus: bMessageReadStatusRead];
}
Depending on your Chat SDK version.
@bensmiley can you please provide me from where i can use the two methods ?
Just copy paste them into your code... They will work anywhere.
@bensmiley i think we need to buy the READ RECEIPTS module in order to mark messages read by users ?
Yes, when you have that module you can use this method.
for Android we have ChatSDK.readReceipts().markRead(msg) but for iOS we have BChatSDK.readReceipt()?.markRead(thread)
is there any way to make spesific message read in iOS