InfiniteScroll 3

fix user list
send telegram text
invited show in profile
This commit is contained in:
paoloar77
2022-08-18 05:26:21 +02:00
parent 8a41aff739
commit ed6abf2b07
23 changed files with 131 additions and 61 deletions

View File

@@ -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)
},