Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
e2224b93
Commit
e2224b93
authored
Jan 30, 2021
by
mathieui
Committed by
Link Mauve
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
private/conversationtabs: update /version to be without callback
parent
df5a3d0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
poezio/tabs/conversationtab.py
poezio/tabs/conversationtab.py
+4
-4
poezio/tabs/privatetab.py
poezio/tabs/privatetab.py
+4
-4
No files found.
poezio/tabs/conversationtab.py
View file @
e2224b93
...
...
@@ -217,19 +217,19 @@ class ConversationTab(OneToOneTab):
return
True
@
command_args_parser
.
quoted
(
0
,
1
)
def
command_version
(
self
,
args
):
async
def
command_version
(
self
,
args
):
"""
/version [jid]
"""
if
args
:
return
self
.
core
.
command
.
version
(
args
[
0
])
return
await
self
.
core
.
command
.
version
(
args
[
0
])
jid
=
self
.
jid
if
not
jid
.
resource
:
if
jid
in
roster
:
resource
=
roster
[
jid
].
get_highest_priority_resource
()
jid
=
resource
.
jid
if
resource
else
jid
self
.
core
.
xmpp
.
plugin
[
'xep_0092'
].
get_version
(
jid
,
callback
=
self
.
core
.
handler
.
on_version_result
)
iq
=
await
self
.
core
.
xmpp
.
plugin
[
'xep_0092'
].
get_version
(
jid
)
self
.
core
.
handler
.
on_version_result
(
iq
)
def
resize
(
self
):
self
.
need_resize
=
False
...
...
poezio/tabs/privatetab.py
View file @
e2224b93
...
...
@@ -184,15 +184,15 @@ class PrivateTab(OneToOneTab):
self
.
cancel_paused_delay
()
@
command_args_parser
.
quoted
(
0
,
1
)
def
command_version
(
self
,
args
):
async
def
command_version
(
self
,
args
):
"""
/version
"""
if
args
:
return
self
.
core
.
command
.
version
(
args
[
0
])
return
await
self
.
core
.
command
.
version
(
args
[
0
])
jid
=
self
.
jid
.
full
self
.
core
.
xmpp
.
plugin
[
'xep_0092'
].
get_version
(
jid
,
callback
=
self
.
core
.
handler
.
on_version_result
)
iq
=
await
self
.
core
.
xmpp
.
plugin
[
'xep_0092'
].
get_version
(
jid
)
self
.
core
.
handler
.
on_version_result
(
iq
)
@
command_args_parser
.
quoted
(
0
,
1
)
def
command_info
(
self
,
arg
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment