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
203
Issues
203
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
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
23c17831
Commit
23c17831
authored
Jan 30, 2021
by
mathieui
Committed by
Link Mauve
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basetabs: remove useless check_features
parent
184f354e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
poezio/tabs/basetabs.py
poezio/tabs/basetabs.py
+0
-13
poezio/tabs/privatetab.py
poezio/tabs/privatetab.py
+0
-1
No files found.
poezio/tabs/basetabs.py
View file @
23c17831
...
...
@@ -955,7 +955,6 @@ class OneToOneTab(ChatTab):
# Set to true once the first disco is done
self
.
__initial_disco
=
False
self
.
check_features
()
self
.
register_command
(
'unquery'
,
self
.
command_unquery
,
shortdesc
=
'Close the tab.'
)
self
.
register_command
(
...
...
@@ -1038,14 +1037,6 @@ class OneToOneTab(ChatTab):
)
self
.
refresh
()
def
check_features
(
self
):
"check the features supported by the other party"
if
safeJID
(
self
.
get_dest_jid
()).
resource
:
self
.
core
.
xmpp
.
plugin
[
'xep_0030'
].
get_info
(
jid
=
self
.
get_dest_jid
(),
timeout
=
5
,
callback
=
self
.
features_checked
)
@
command_args_parser
.
raw
def
command_attention
(
self
,
message
):
"""/attention [message]"""
...
...
@@ -1082,7 +1073,3 @@ class OneToOneTab(ChatTab):
msg
=
msg
%
(
self
.
name
,
feature
,
command_name
)
self
.
core
.
information
(
msg
,
'Info'
)
return
True
def
features_checked
(
self
,
iq
):
"Features check callback"
features
=
iq
[
'disco_info'
].
get_features
()
or
[]
poezio/tabs/privatetab.py
View file @
23c17831
...
...
@@ -369,7 +369,6 @@ class PrivateTab(OneToOneTab):
The user (or at least someone with the same nick) came back in the MUC
"""
self
.
activate
()
self
.
check_features
()
tab
=
self
.
parent_muc
theme
=
get_theme
()
color
=
dump_tuple
(
theme
.
COLOR_REMOTE_USER
)
...
...
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