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
205
Issues
205
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
56dee2c7
Commit
56dee2c7
authored
Dec 15, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the issue of first private message received
parent
23aa5542
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
src/core.py
src/core.py
+4
-5
src/windows.py
src/windows.py
+2
-2
No files found.
src/core.py
View file @
56dee2c7
...
...
@@ -429,7 +429,7 @@ class Core(object):
# Differentiate both type of messages, and call the appropriate handler.
jid_from
=
message
[
'from'
]
for
tab
in
self
.
tabs
:
if
tab
.
get_name
()
==
jid_from
.
full
:
if
tab
.
get_name
()
==
jid_from
.
bare
:
if
message
[
'type'
]
==
'error'
:
return
self
.
room_error
(
message
,
tab
.
get_room
().
name
)
else
:
...
...
@@ -599,7 +599,8 @@ class Core(object):
"""
for
tab
in
self
.
tabs
:
if
(
isinstance
(
tab
,
tabs
.
MucTab
)
or
isinstance
(
tab
,
tabs
.
PrivateTab
))
and
tab
.
get_name
()
==
name
:
isinstance
(
tab
,
tabs
.
PrivateTab
)
or
isinstance
(
tab
,
tabs
.
ConversationTab
))
and
tab
.
get_name
()
==
name
:
return
tab
.
get_room
()
return
None
...
...
@@ -757,7 +758,7 @@ class Core(object):
if
isinstance
(
tab
,
tabs
.
PrivateTab
):
if
tab
.
get_name
()
==
complete_jid
:
self
.
command_win
(
'%s'
%
tab
.
nb
)
return
return
tag
.
get_room
()
# create the new tab
room
=
self
.
get_room_by_name
(
room_name
)
if
not
room
:
...
...
@@ -950,7 +951,6 @@ class Core(object):
# we are writing the resource: complete the node
if
not
the_input
.
last_completion
:
response
=
self
.
xmpp
.
plugin
[
'xep_0030'
].
getItems
(
jid
.
server
)
log
.
debug
(
'HEY: %s
\n
'
%
response
)
if
response
:
items
=
response
[
'disco_items'
].
getItems
()
else
:
...
...
@@ -960,7 +960,6 @@ class Core(object):
the_input
.
key_backspace
()
else
:
items
=
[]
log
.
debug
(
'%s
\n
'
%
items
)
the_input
.
auto_completion
(
items
,
''
)
else
:
# we are writing the server: complete the server
...
...
src/windows.py
View file @
56dee2c7
...
...
@@ -936,8 +936,8 @@ class Input(Win):
def
do_command
(
self
,
key
,
reset
=
True
):
if
key
in
self
.
key_func
:
return
self
.
key_func
[
key
]()
#
if not key or len(key) > 1:
#
return False # ignore non-handled keyboard shortcuts
if
not
key
or
len
(
key
)
>
1
:
return
False
# ignore non-handled keyboard shortcuts
self
.
reset_completion
()
self
.
text
=
self
.
text
[:
self
.
pos
+
self
.
line_pos
]
+
key
+
self
.
text
[
self
.
pos
+
self
.
line_pos
:]
(
y
,
x
)
=
self
.
_win
.
getyx
()
...
...
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