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
eta
gajim
Commits
479bfa56
Commit
479bfa56
authored
6 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Set password correctly on MUC join
parent
895a7a87
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
gajim/common/modules/muc.py
+6
-6
6 additions, 6 deletions
gajim/common/modules/muc.py
with
6 additions
and
6 deletions
gajim/common/modules/muc.py
+
6
−
6
View file @
479bfa56
...
...
@@ -59,26 +59,26 @@ class MUC:
presence
=
self
.
_con
.
get_module
(
'
Presence
'
).
get_presence
(
*
args
,
**
kwargs
)
muc_x
=
presence
.
setTag
(
nbxmpp
.
NS_MUC
+
'
x
'
)
if
room_jid
is
not
None
:
self
.
_add_history_query
(
presence
,
room_jid
,
rejoin
)
self
.
_add_history_query
(
muc_x
,
room_jid
,
rejoin
)
if
password
is
not
None
:
presence
.
setTagData
(
'
password
'
,
password
)
muc_x
.
setTagData
(
'
password
'
,
password
)
log
.
debug
(
'
Send MUC join presence:
\n
%s
'
,
presence
)
self
.
_con
.
connection
.
send
(
presence
)
def
_add_history_query
(
self
,
presence
,
room_jid
,
rejoin
):
def
_add_history_query
(
self
,
muc_x
,
room_jid
,
rejoin
):
last_date
=
app
.
logger
.
get_room_last_message_time
(
self
.
_account
,
room_jid
)
if
not
last_date
:
last_date
=
0
history
=
presence
.
setTag
(
nbxmpp
.
NS_MUC
+
'
x
'
)
if
muc_caps_cache
.
has_mam
(
room_jid
):
# The room is MAM capable dont get MUC History
history
.
setTag
(
'
history
'
,
{
'
maxchars
'
:
'
0
'
})
muc_x
.
setTag
(
'
history
'
,
{
'
maxchars
'
:
'
0
'
})
else
:
# Request MUC History (not MAM)
tags
=
{}
...
...
@@ -100,7 +100,7 @@ class MUC:
if
nb
>=
0
:
tags
[
'
maxstanzas
'
]
=
nb
if
tags
:
history
.
setTag
(
'
history
'
,
tags
)
muc_x
.
setTag
(
'
history
'
,
tags
)
def
set_subject
(
self
,
room_jid
,
subject
):
if
not
app
.
account_is_connected
(
self
.
_account
):
...
...
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