Skip to content

Commit

Permalink
removed unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathyan-KM committed Apr 4, 2024
1 parent 85a7120 commit e4805df
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,20 +350,15 @@ public class KMConversationListViewController: ALKBaseViewController, Localizabl
}

@objc func conversationDeleted(notification : NSNotification) {
print("Pakka101 conversation deleted called \(notification)")
guard let conversation = notification.object as? ALMessage else {
return
}
deleteConversation(conversation: conversation)

guard let conversation = notification.object as? ALMessage else { return }
deleteConversation(conversation: conversation)
}

private func deleteConversation(conversation: ALMessage) {
ALMessageService().deleteMessageThread(nil, orChannelKey: conversation.groupId, withCompletion: {
_, error in
guard error == nil else {
print("Pakka101 Failed to delete the conversation: \(error.debugDescription)")

print("Failed to delete the conversation: \(error.debugDescription)")
return
}
})
Expand Down

0 comments on commit e4805df

Please sign in to comment.