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
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
197
Issues
197
List
Boards
Labels
Service Desk
Milestones
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
gajim
gajim
Commits
c0980b92
Commit
c0980b92
authored
Apr 09, 2019
by
Daniel Brötzmann
Committed by
Philipp Hörist
Dec 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don’t send PM if group chat is not anonymous
parent
39bdea7b
Pipeline
#6943
passed with stages
in 10 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
gajim/common/setting_values.py
gajim/common/setting_values.py
+1
-0
gajim/groupchat_control.py
gajim/groupchat_control.py
+7
-4
gajim/gtk/preferences.py
gajim/gtk/preferences.py
+6
-0
No files found.
gajim/common/setting_values.py
View file @
c0980b92
...
...
@@ -116,6 +116,7 @@ class _ACCOUNT_DEFAULT:
'notification_position_x'
:
-
1
,
'notification_position_y'
:
-
1
,
'muc_highlight_words'
:
''
,
'muc_prefer_direct_msg'
:
True
,
'quit_on_roster_x_button'
:
False
,
'hide_on_roster_x_button'
:
False
,
'show_status_msgs_in_roster'
:
True
,
...
...
gajim/groupchat_control.py
View file @
c0980b92
...
...
@@ -1902,11 +1902,14 @@ def _start_private_message(self, nick):
gc_c
=
app
.
contacts
.
get_gc_contact
(
self
.
account
,
self
.
room_jid
,
nick
)
nick_jid
=
gc_c
.
get_full_jid
()
ctrl
=
app
.
interface
.
msg_win_mgr
.
get_control
(
nick_jid
,
self
.
account
)
if
not
ctrl
:
muc_prefer_direct_msg
=
app
.
settings
.
get
(
'muc_prefer_direct_msg'
)
pm_queue
=
len
(
app
.
events
.
get_events
(
self
.
account
,
jid
=
nick_jid
,
types
=
[
'pm'
]))
if
not
self
.
is_anonymous
and
muc_prefer_direct_msg
and
not
pm_queue
:
jid
=
app
.
get_jid_without_resource
(
gc_c
.
jid
)
ctrl
=
app
.
interface
.
new_chat_from_jid
(
self
.
account
,
jid
)
else
:
ctrl
=
app
.
interface
.
new_private_chat
(
gc_c
,
self
.
account
)
if
ctrl
:
ctrl
.
parent_win
.
set_active_tab
(
ctrl
)
return
ctrl
...
...
gajim/gtk/preferences.py
View file @
c0980b92
...
...
@@ -420,6 +420,12 @@ def __init__(self, *args):
desc
=
_
(
'Default for new public group chats'
),
props
=
{
'entries'
:
THRESHOLD_OPTIONS
}),
Setting
(
SettingKind
.
SWITCH
,
_
(
'Direct Messages'
),
SettingType
.
CONFIG
,
'muc_prefer_direct_msg'
,
desc
=
_
(
'Prefer direct messages in private group chats '
)),
Setting
(
SettingKind
.
SWITCH
,
_
(
'Show Joined / Left'
),
SettingType
.
CONFIG
,
...
...
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