InfiniteScroll 3
fix user list send telegram text invited show in profile
This commit is contained in:
@@ -1140,7 +1140,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
},
|
||||
|
||||
async sendMsgToBotTelegram($q: any, t: any, mydata: IMsgGlobParam) {
|
||||
async sendMsgToBotTelegram($q: any, t: any, mydata: IMsgGlobParam, showmsgsent: boolean) {
|
||||
return Api.SendReq('/users/mgt', 'POST', { mydata })
|
||||
.then((res) => {
|
||||
console.log('res', res)
|
||||
@@ -1148,7 +1148,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) {
|
||||
msgok = t('cal.sendmsg_sent_sharedlink') + ' ' + tools.getBotName()
|
||||
}
|
||||
if (res.data.nummsgsent >= 0) {
|
||||
if (showmsgsent && res.data.nummsgsent >= 0) {
|
||||
tools.showPositiveNotif($q, msgok)
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user