Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
00b7e982
Commit
00b7e982
authored
16 years ago
by
Brendan Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fix lack of notification
parent
de21abe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/session.py
+6
-6
6 additions, 6 deletions
src/session.py
with
6 additions
and
6 deletions
src/session.py
+
6
−
6
View file @
00b7e982
...
...
@@ -183,6 +183,12 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
self
.
control
=
ctrl
self
.
control
.
set_session
(
self
)
# Is it a first or next message received ?
first
=
False
if
not
self
.
control
and
not
gajim
.
events
.
get_events
(
self
.
conn
.
name
,
\
jid_of_control
,
[
msg_type
]):
first
=
True
if
pm
:
nickname
=
resource
groupchat_control
.
on_private_message
(
nickname
,
msgtxt
,
tim
,
...
...
@@ -200,17 +206,11 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
msg
=
_
(
'
Subject: %s
'
)
%
subject
+
'
\n
'
+
msg
focused
=
False
# Is it a first or next message received ?
first
=
False
if
self
.
control
:
parent_win
=
self
.
control
.
parent_win
if
self
.
control
==
parent_win
.
get_active_control
()
and
\
parent_win
.
window
.
has_focus
:
focused
=
True
elif
not
gajim
.
events
.
get_events
(
self
.
conn
.
name
,
\
jid_of_control
,
[
msg_type
]):
first
=
True
notify
.
notify
(
'
new_message
'
,
jid_of_control
,
self
.
conn
.
name
,
[
msg_type
,
first
,
nickname
,
msg
,
focused
],
advanced_notif_num
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment