Skip to content

Commit 470296b

Browse files
Pushpsen AirekarPushpsen Airekar
authored andcommitted
v3.0.8-1
1 parent f9a5426 commit 470296b

File tree

5 files changed

+42
-4
lines changed

5 files changed

+42
-4
lines changed

.DS_Store

0 Bytes
Binary file not shown.

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/CometChatObjc/main.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ int main(int argc, char * argv[]) {
1717
}
1818
return UIApplicationMain(argc, argv, nil, appDelegateClassName);
1919
}
20-

CometChatObjc/Podfile

Lines changed: 1 addition & 1 deletion
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', '3.0.5'
5+
pod 'CometChatPro', '3.0.8'
66
pod 'CometChatCalls', '2.1.1'
77
end

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010

1111
</br>
1212

13-
1413
# iOS Objective-C Chat App
1514

1615
<p align="left">
1716

1817
<a href=""><img src="https://img.shields.io/badge/Repo%20Size-15.6%20MB-brightgreen" /></a>
1918
<a href=""> <img src="https://img.shields.io/badge/Contributors-5-yellowgreen" /></a>
20-
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.5--1-red" /></a>
19+
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.8--1-red" /></a>
2120
<a href=""> <img src="https://img.shields.io/github/stars/cometchat-pro/ios-objective-c-chat-app?style=social" /></a>
2221
<a href=""> <img src="https://img.shields.io/twitter/follow/cometchat?style=social" /></a>
2322

0 commit comments

Comments
 (0)