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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user