Closed hajakiyasudeen closed 6 years ago
@hajakiyasudeen, Hello, you should perform join to the group dialog before sending the message.
QBChatDialog *groupDialog;
[groupDialog joinWithCompletionBlock:^(NSError * _Nullable error) {
}];
let groupDialog: QBChatDialog
groupDialog.join(completionBlock: { (error) in
// Handle error here
if let error = error {
print("Error:\(error)")
}
})
Yes It's working once I added joinWithCompletionBlock method, closed the issue Thank you,
Environment details iOS version, Quickblox iOS SDK version, QuickbloxWebRTC SDK version (optional) iOS 10.2.1 QuickBlox (2.7.3) QMServices (0.4.2)
Did this work before? Yes
Expected behavior User can send messages in group
Actual behavior User is login, while sending a message and receive error "You are not joined to the dialog".
Logs
I have logged with user “Helina(50725108)” and created a QBChatDialog “Z 2” with 3 users(Helina,zahid, tyson) all are working fine, but When I try to send message in this group by using below method
[self.chatDialog sendMessage:message completionBlock:^(NSError * _Nullable error) {}];
And I receive the following messages in logs
Error Error Domain=com.quickblox.chat Code=-1001 "(null)" UserInfo={NSLocalizedRecoverySuggestion=You are not joined to the dialog.}
Here is full log from the app start till "you are not joinedto the dialog" error.
While send message to
Error Error Domain=com.quickblox.chat Code=-1001 "(null)" UserInfo={NSLocalizedRecoverySuggestion=You are not joined to the dialog.}
Steps to reproduce the behavior Application ID: 45301