@@ -26,7 +26,6 @@ import {
2626 GalleryIcon ,
2727 HeadSetIcon ,
2828 LocationIcon ,
29- LogIcon ,
3029 NotificationSettingsIcon ,
3130 ProfileIcon ,
3231 SandTimer ,
@@ -42,7 +41,7 @@ import {
4241 requestStoragePermission ,
4342} from '../common/permissions' ;
4443import { changeTimeFormat } from '../common/timeStamp' ;
45- import { cancelAudioRecord } from '../components/ChatInput' ;
44+ import { stopAudioRecord } from '../components/ChatInput' ;
4645import { conversationFlatListRef } from '../components/ConversationList' ;
4746import config from '../config/config' ;
4847import {
@@ -84,7 +83,7 @@ import {
8483 toggleIsChatSearching ,
8584 updateMediaStatus ,
8685} from '../redux/chatMessageDataSlice' ;
87- import { setReplyMessage , setTextMessage } from '../redux/draftSlice' ;
86+ import { setReplyMessage } from '../redux/draftSlice' ;
8887import {
8988 clearRecentChatData ,
9089 deleteMessagesForEveryoneInRecentChat ,
@@ -1442,9 +1441,7 @@ export const handleUpdateBlockUser = (userId, isBlocked, chatUser) => async () =
14421441 if ( isBlocked ) {
14431442 const res = await SDK . blockUser ( chatUser ) ;
14441443 if ( res . statusCode === 200 ) {
1445- cancelAudioRecord ( ) ;
1446- store . dispatch ( setReplyMessage ( { userId, message : { } } ) ) ;
1447- store . dispatch ( setTextMessage ( { userId, message : '' } ) ) ;
1444+ stopAudioRecord ( ) ;
14481445 showToast ( `You have blocked ${ getUserNameFromStore ( userId ) } ` ) ;
14491446 store . dispatch ( updateBlockUser ( { userId, isBlocked } ) ) ;
14501447 } else {
0 commit comments