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
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
c6e8b299
Commit
c6e8b299
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Settings: Make send_chatstate an account setting
parent
28ec7ab8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/common/setting_values.py
+4
-4
4 additions, 4 deletions
gajim/common/setting_values.py
gajim/common/settings.py
+10
-1
10 additions, 1 deletion
gajim/common/settings.py
with
14 additions
and
5 deletions
gajim/common/setting_values.py
+
4
−
4
View file @
c6e8b299
...
...
@@ -175,7 +175,6 @@ class _ACCOUNT_DEFAULT:
'
show_chatstate_in_roster
'
:
True
,
'
show_chatstate_in_tabs
'
:
True
,
'
show_chatstate_in_banner
'
:
True
,
'
send_chatstate_default
'
:
'
composing_only
'
,
'
muclumbus_api_jid
'
:
'
rodrigo.de.mucobedo@dreckshal.de
'
,
'
muclumbus_api_http_uri
'
:
'
https://search.jabbercat.org/api/1.0/search
'
,
'
muclumbus_api_pref
'
:
'
http
'
,
...
...
@@ -187,7 +186,6 @@ class _ACCOUNT_DEFAULT:
'
gc_notify_on_all_messages_public_default
'
:
False
,
'
gc_print_status_default
'
:
False
,
'
gc_print_join_left_default
'
:
False
,
'
gc_send_chatstate_default
'
:
'
composing_only
'
,
'
check_for_update
'
:
True
,
'
last_update_check
'
:
''
,
'
always_ask_for_status_message
'
:
False
,
...
...
@@ -259,11 +257,13 @@ class _ACCOUNT_DEFAULT:
'
opened_chat_controls
'
:
''
,
'
recent_groupchats
'
:
''
,
'
filetransfer_preference
'
:
'
httpupload
'
,
'
send_chatstate_default
'
:
'
composing_only
'
,
'
gc_send_chatstate_default
'
:
'
composing_only
'
,
},
'
contact
'
:
{
'
speller_language
'
:
''
,
'
send_chatstate
'
:
HAS_A
PP
_DEFAULT
,
'
send_chatstate
'
:
HAS_A
CCOUNT
_DEFAULT
,
'
encryption
'
:
''
,
},
...
...
@@ -274,7 +274,7 @@ class _ACCOUNT_DEFAULT:
'
print_join_left
'
:
HAS_APP_DEFAULT
,
'
minimize_on_autojoin
'
:
True
,
'
minimize_on_close
'
:
True
,
'
send_chatstate
'
:
HAS_A
PP
_DEFAULT
,
'
send_chatstate
'
:
HAS_A
CCOUNT
_DEFAULT
,
'
encryption
'
:
''
,
},
}
...
...
This diff is collapsed.
Click to expand it.
gajim/common/settings.py
+
10
−
1
View file @
c6e8b299
...
...
@@ -284,7 +284,13 @@ def _migrate_app_settings(self) -> None:
# Migrate deprecated settings
value
=
app_settings
.
pop
(
'
send_chatstate_muc_default
'
,
None
)
if
value
is
not
None
:
app_settings
[
'
gc_send_chatstate_default
'
]
=
value
for
account
in
self
.
_account_settings
[
'
account
'
]:
self
.
_account_settings
[
account
][
'
account
'
][
'
gc_send_chatstate_default
'
]
=
value
value
=
app_settings
.
pop
(
'
send_chatstate_default
'
,
None
)
if
value
is
not
None
:
for
account
in
self
.
_account_settings
[
'
account
'
]:
self
.
_account_settings
[
account
][
'
account
'
][
'
send_chatstate_default
'
]
=
value
value
=
app_settings
.
pop
(
'
print_join_left_default
'
,
None
)
if
value
is
not
None
:
...
...
@@ -303,6 +309,9 @@ def _migrate_app_settings(self) -> None:
self
.
_settings
[
'
app
'
]
=
app_settings
self
.
_commit_settings
(
'
app
'
)
for
account
in
self
.
_account_settings
:
self
.
_commit_account_settings
(
account
)
def
_migrate_encryption_settings
(
self
)
->
None
:
# Migrate encryption settings into contact/group chat settings
encryption_settings
=
app
.
config
.
get_all_per
(
'
encryption
'
)
...
...
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