InfiniteScroll 3
fix user list send telegram text invited show in profile
This commit is contained in:
@@ -5611,25 +5611,29 @@ export const tools = {
|
||||
return window.location.pathname.indexOf('signup') >= 0
|
||||
},
|
||||
|
||||
async sendMsgTelegram($q: any, $t: any, mydata: IMsgGlobParam) {
|
||||
async sendMsgTelegram($q: any, $t: any, mydata: IMsgGlobParam, showmsgsent: boolean) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
return userStore.sendMsgToBotTelegram($q, $t, mydata)
|
||||
return userStore.sendMsgToBotTelegram($q, $t, mydata, showmsgsent)
|
||||
},
|
||||
|
||||
async sendMsgTelegramCmd($q: any, $t: any, cmd: number) {
|
||||
async sendMsgTelegramCmd($q: any, $t: any, cmd: number, showmsgsent: boolean, text?: string, title?: string) {
|
||||
|
||||
let mydata: IMsgGlobParam = {
|
||||
typemsg: 0,
|
||||
typesend: shared_consts.TypeSend.TELEGRAM,
|
||||
cmd,
|
||||
content: text,
|
||||
title,
|
||||
}
|
||||
|
||||
if (cmd === shared_consts.CmdToSend.SHARE_MSGREG) {
|
||||
if ((cmd === shared_consts.CmdToSend.SHARE_MSGREG) || (cmd === shared_consts.CmdToSend.SHARE_TEXT)) {
|
||||
mydata.typemsg = shared_consts.TypeMsg.SEND_TO_MYSELF
|
||||
// if yourself , don't need to say I send to me
|
||||
showmsgsent = false
|
||||
}
|
||||
|
||||
return this.sendMsgTelegram($q, $t, mydata)
|
||||
return this.sendMsgTelegram($q, $t, mydata, showmsgsent)
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user