@@ -29,7 +29,7 @@ import {
29
29
MAX_MEDIA_FILES_FOR_ALBUM ,
30
30
MESSAGE_ID_REQUIRED_ERROR ,
31
31
MESSAGE_LIST_SLICE ,
32
- PAID_SEND_DELAY , RE_TELEGRAM_LINK ,
32
+ RE_TELEGRAM_LINK ,
33
33
SERVICE_NOTIFICATIONS_USER_ID ,
34
34
SUPPORTED_AUDIO_CONTENT_TYPES ,
35
35
SUPPORTED_PHOTO_CONTENT_TYPES ,
@@ -1713,6 +1713,9 @@ async function sendMessagesWithNotification<T extends GlobalState>(
1713
1713
options : { pluralValue : messagesCount } ,
1714
1714
} ;
1715
1715
1716
+ // eslint-disable-next-line eslint-multitab-tt/no-getactions-in-actions
1717
+ getActions ( ) . sendMessages ( { sendParams } ) ;
1718
+
1716
1719
// eslint-disable-next-line eslint-multitab-tt/no-getactions-in-actions
1717
1720
getActions ( ) . showNotification ( {
1718
1721
localId : getMessageKey ( firstMessage ) ,
@@ -1721,20 +1724,6 @@ async function sendMessagesWithNotification<T extends GlobalState>(
1721
1724
key : 'MessageSentPaidToastText' ,
1722
1725
variables : { amount : formatStarsAsText ( getTranslationFn ( ) , starsForOneMessage * messagesCount ) } ,
1723
1726
} ,
1724
- actionText : { key : 'ButtonUndo' } ,
1725
- action : {
1726
- action : 'deleteMessages' ,
1727
- payload : { messageList : firstSendParam . messageList , messageIds : messageIdsForUndo , shouldDeleteForAll : true } ,
1728
- } ,
1729
- dismissAction : {
1730
- action : 'sendMessages' ,
1731
- payload : {
1732
- sendParams,
1733
- } ,
1734
- } ,
1735
- duration : PAID_SEND_DELAY ,
1736
- shouldShowTimer : true ,
1737
- disableClickDismiss : true ,
1738
1727
icon : 'star' ,
1739
1728
shouldUseCustomIcon : true ,
1740
1729
type : 'paidMessage' ,
0 commit comments