When (de)authorising user the menu changes simultaneously with the add(remove)

Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
2020-04-06 23:23:28 +02:00
parent dd3ab25fba
commit 23079fcbb2
3 changed files with 15 additions and 10 deletions

View File

@@ -162,6 +162,11 @@ func groupCallback(c *tb.Callback, group userGroup) {
Text: authAlert,
ShowAlert: true,
})
if add {
authUserCmd(c.Sender, dataContent[0], false)
} else {
deAuthUserCmd(c.Sender, dataContent[0], false)
}
}
}