XEP-0050: make prev action possible when there is no next action (fixes #3516)
Obviously the session has to allow for it, which must be modified in a handler.
This commit is contained in:
parent
0de9df92c4
commit
3de8ee97b5
@ -326,7 +326,10 @@ class XEP_0050(BasePlugin):
|
|||||||
iq['command']['actions'] = actions
|
iq['command']['actions'] = actions
|
||||||
iq['command']['status'] = 'executing'
|
iq['command']['status'] = 'executing'
|
||||||
else:
|
else:
|
||||||
iq['command']['actions'] = ['complete']
|
actions = ['complete']
|
||||||
|
if session['allow_prev']:
|
||||||
|
actions.append('prev')
|
||||||
|
iq['command']['actions'] = actions
|
||||||
iq['command']['status'] = 'executing'
|
iq['command']['status'] = 'executing'
|
||||||
|
|
||||||
iq['command']['notes'] = session['notes']
|
iq['command']['notes'] = session['notes']
|
||||||
|
Loading…
Reference in New Issue
Block a user