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
l-n-s
gajim
Commits
ac4bde04
Commit
ac4bde04
authored
5 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
MAM: Always reset state on reconnect
It was not reset if the previous MAM query was interrupted because of a disconnect
parent
03917eda
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/common/connection.py
+1
-0
1 addition, 0 deletions
gajim/common/connection.py
gajim/common/modules/mam.py
+4
-0
4 additions, 0 deletions
gajim/common/modules/mam.py
with
5 additions
and
0 deletions
gajim/common/connection.py
+
1
−
0
View file @
ac4bde04
...
...
@@ -1346,6 +1346,7 @@ class Connection(CommonConnection, ConnectionHandlers):
self
.
_discover_server
()
self
.
_set_send_timeouts
()
self
.
get_module
(
'
Chatstate
'
).
enabled
=
True
self
.
get_module
(
'
MAM
'
).
reset_state
()
def
_set_send_timeouts
(
self
):
if
app
.
config
.
get_per
(
'
accounts
'
,
self
.
name
,
'
keep_alives_enabled
'
):
...
...
This diff is collapsed.
Click to expand it.
gajim/common/modules/mam.py
+
4
−
0
View file @
ac4bde04
...
...
@@ -68,6 +68,10 @@ class MAM(BaseModule):
account
=
self
.
_account
,
feature
=
self
.
archiving_namespace
))
def
reset_state
(
self
):
self
.
_mam_query_ids
.
clear
()
self
.
_catch_up_finished
.
clear
()
def
_from_valid_archive
(
self
,
_stanza
,
properties
):
if
properties
.
type
.
is_groupchat
:
expected_archive
=
properties
.
jid
...
...
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