Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
6f768f2b
Commit
6f768f2b
authored
Sep 22, 2006
by
dkirov
Browse files
don't open chat window with full jid (
#2443
)
parent
2ebd0af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gajim.py
View file @
6f768f2b
...
...
@@ -1735,11 +1735,13 @@ class Interface:
elif
type_
in
(
'printed_chat'
,
'chat'
):
if
self
.
msg_win_mgr
.
has_window
(
fjid
,
account
):
w
=
self
.
msg_win_mgr
.
get_window
(
fjid
,
account
)
elif
self
.
msg_win_mgr
.
has_window
(
jid
,
account
):
w
=
self
.
msg_win_mgr
.
get_window
(
jid
,
account
)
else
:
contact
=
gajim
.
contacts
.
get_contact
(
account
,
jid
,
resource
)
if
isinstance
(
contact
,
list
):
contact
=
gajim
.
contacts
.
get_first_contact_from_jid
(
account
,
jid
)
self
.
roster
.
new_chat
(
contact
,
account
,
resource
=
resource
)
self
.
roster
.
new_chat
(
contact
,
account
)
w
=
self
.
msg_win_mgr
.
get_window
(
fjid
,
account
)
gajim
.
last_message_time
[
account
][
jid
]
=
0
# long time ago
elif
type_
in
(
'printed_pm'
,
'pm'
):
...
...
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