Skip to content

Commit 81e2804

Browse files
Pushpsen AirekarPushpsen Airekar
authored andcommitted
v2.4.2-1
1 parent ed44651 commit 81e2804

File tree

5 files changed

+43
-35
lines changed

5 files changed

+43
-35
lines changed

CometChatObjc/CometChatObjc.xcodeproj/xcuserdata/pushpsenairekar.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 32 deletions
This file was deleted.

CometChatObjc/CometChatObjc/Library/UI Components/Calls/Incoming Call/CometChatIncomingCall.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class CometChatIncomingCall: UIViewController {
4848

4949
override public func viewWillAppear(_ animated: Bool) {
5050
CometChatCallManager.incomingCallDelegate = self
51+
CometChatCallManager.outgoingCallDelegate = self
5152
}
5253

5354
// MARK: - Public Instance methods
@@ -281,3 +282,42 @@ extension CometChatIncomingCall: IncomingCallDelegate {
281282
}
282283

283284
/* ----------------------------------------------------------------------------------------- */
285+
286+
// MARK: - OutgoingCallDelegate methods
287+
288+
extension CometChatIncomingCall: OutgoingCallDelegate {
289+
290+
/**
291+
This method triggers when outgoing call accepted by User or group.
292+
- Parameters:
293+
- acceptedCall: Specifies a Call Object
294+
- error: triggers when error occurs
295+
- Author: CometChat Team
296+
- Copyright: © 2020 CometChat Inc.
297+
*/
298+
public func onOutgoingCallAccepted(acceptedCall: Call, error: CometChatException?) {
299+
DispatchQueue.main.async {
300+
if acceptedCall.sender?.uid == LoggedInUser.uid {
301+
self.dismiss()
302+
}
303+
}
304+
}
305+
306+
/**
307+
This method triggers when outgoing call rejceted by User or group.
308+
- Parameters:
309+
- rejectedCall: Specifies a Call Object
310+
- error: triggers when error occurs
311+
- Author: CometChat Team
312+
- Copyright: © 2020 CometChat Inc.
313+
*/
314+
public func onOutgoingCallRejected(rejectedCall: Call, error: CometChatException?) {
315+
DispatchQueue.main.async {
316+
if rejectedCall.sender?.uid == LoggedInUser.uid {
317+
self.dismiss()
318+
}
319+
}
320+
}
321+
}
322+
323+
/* ----------------------------------------------------------------------------------------- */

CometChatObjc/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ platform :ios, '11.0'
22
use_frameworks!
33

44
target 'CometChatObjc' do
5-
pod 'CometChatPro', '2.4.1'
6-
pod 'CometChatCalls', '2.1.0'
5+
pod 'CometChatPro', '2.4.2'
6+
pod 'CometChatCalls', '2.1.1'
77
end

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<a href=""><img src="https://img.shields.io/badge/Repo%20Size-15.6%20MB-brightgreen" /></a>
1919
<a href=""> <img src="https://img.shields.io/badge/Contributors-5-yellowgreen" /></a>
20-
<a href=" "> <img src="https://img.shields.io/badge/Version-2.4.1--3-red" /></a>
20+
<a href=" "> <img src="https://img.shields.io/badge/Version-2.4.2--1-red" /></a>
2121
<a href=""> <img src="https://img.shields.io/github/stars/cometchat-pro/ios-objective-c-chat-app?style=social" /></a>
2222
<a href=""> <img src="https://img.shields.io/twitter/follow/cometchat?style=social" /></a>
2323

0 commit comments

Comments
 (0)