@@ -341,6 +341,7 @@ public final class CometChatConversationList: UIViewController {
341341 }
342342 }
343343 } } else { }
344+
344345 }
345346
346347 /**
@@ -596,7 +597,6 @@ extension CometChatConversationList : CometChatMessageDelegate {
596597 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
597598 */
598599 public func onTextMessageReceived( textMessage: TextMessage ) {
599-
600600 switch UIKitSettings . chatListMode {
601601
602602 case . user:
@@ -682,7 +682,7 @@ extension CometChatConversationList : CometChatMessageDelegate {
682682 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
683683 */
684684 public func onMediaMessageReceived( mediaMessage: MediaMessage ) {
685-
685+
686686 switch UIKitSettings . chatListMode {
687687
688688 case . user:
@@ -802,6 +802,7 @@ extension CometChatConversationList : CometChatMessageDelegate {
802802 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
803803 */
804804 public func onCustomMessageReceived( customMessage: CustomMessage ) {
805+
805806 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
806807 refreshConversations ( )
807808 }
@@ -973,6 +974,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
973974 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
974975 */
975976 public func onGroupMemberJoined( action: ActionMessage , joinedUser: User , joinedGroup: Group ) {
977+
976978 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
977979 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
978980 refreshConversations ( )
@@ -991,6 +993,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
991993 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
992994 */
993995 public func onGroupMemberLeft( action: ActionMessage , leftUser: User , leftGroup: Group ) {
996+
994997 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
995998 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
996999 refreshConversations ( )
@@ -1010,6 +1013,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
10101013 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
10111014 */
10121015 public func onGroupMemberKicked( action: ActionMessage , kickedUser: User , kickedBy: User , kickedFrom: Group ) {
1016+
10131017 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
10141018 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
10151019 refreshConversations ( )
@@ -1029,6 +1033,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
10291033 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
10301034 */
10311035 public func onGroupMemberBanned( action: ActionMessage , bannedUser: User , bannedBy: User , bannedFrom: Group ) {
1036+
10321037 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
10331038 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
10341039 refreshConversations ( )
@@ -1048,6 +1053,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
10481053 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
10491054 */
10501055 public func onGroupMemberUnbanned( action: ActionMessage , unbannedUser: User , unbannedBy: User , unbannedFrom: Group ) {
1056+
10511057 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
10521058 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
10531059 refreshConversations ( )
@@ -1069,6 +1075,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
10691075 [CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
10701076 */
10711077 public func onGroupMemberScopeChanged( action: ActionMessage , scopeChangeduser: User , scopeChangedBy: User , scopeChangedTo: String , scopeChangedFrom: String , group: Group ) {
1078+
10721079 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
10731080 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
10741081 refreshConversations ( )
@@ -1088,6 +1095,7 @@ extension CometChatConversationList : CometChatGroupDelegate {
10881095 ///[CometChatConversationList Documentation](https://prodocs.cometchat.com/docs/ios-ui-screens#section-3-comet-chat-conversation-list)
10891096
10901097 public func onMemberAddedToGroup( action: ActionMessage , addedBy: User , addedUser: User , addedTo: Group ) {
1098+
10911099 if UIKitSettings . chatListMode == . group || UIKitSettings . chatListMode == . both {
10921100 DispatchQueue . main. async { CometChatSoundManager ( ) . play ( sound: . incomingMessageForOther, bool: true ) }
10931101 refreshConversations ( )
0 commit comments