Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8b7aae56 by Philipp Hörist at 2018-10-03T07:56:56Z
MUC: Set active chatstate on messages
- - - - -
1 changed file:
- gajim/common/modules/chatstates.py
Changes:
=====================================
gajim/common/modules/chatstates.py
=====================================
@@ -166,12 +166,13 @@ class Chatstate:
if setting == 'disabled':
return None
- # Dont send chatstates to ourself
- if self._con.get_own_jid().bareMatch(contact.jid):
- return None
+ if not contact.is_groupchat():
+ # Dont send chatstates to ourself
+ if self._con.get_own_jid().bareMatch(contact.jid):
+ return None
- if not contact.supports(nbxmpp.NS_CHATSTATES):
- return None
+ if not contact.supports(nbxmpp.NS_CHATSTATES):
+ return None
self.set_active(contact.jid)
return 'active'
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8b7aae564b98a333848929aa1f638a29aa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8b7aae564b98a333848929aa1f638a29aa…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b6c43c90 by Philipp Hörist at 2018-10-03T06:08:32Z
Fix the fix
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
@@ -647,7 +647,7 @@ class Connection(CommonConnection, ConnectionHandlers):
if self.old_show:
self.connected = app.SHOW_LIST.index(self.old_show)
app.nec.push_incoming_event(OurShowEvent(
- None, conn=self, show=app.SHOW_LIST[self.old_show]))
+ None, conn=self, show=self.old_show))
else: # we default to online
self.connected = 2
app.nec.push_incoming_event(OurShowEvent(
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b6c43c90666d800fe3896656d1bf80ee8c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b6c43c90666d800fe3896656d1bf80ee8c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ef3cc504 by Philipp Hörist at 2018-10-03T05:53:30Z
Pass correct show state
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
@@ -646,12 +646,12 @@ class Connection(CommonConnection, ConnectionHandlers):
def set_oldst(self): # Set old state
if self.old_show:
self.connected = app.SHOW_LIST.index(self.old_show)
- app.nec.push_incoming_event(OurShowEvent(None, conn=self,
- show=self.connected))
+ app.nec.push_incoming_event(OurShowEvent(
+ None, conn=self, show=app.SHOW_LIST[self.old_show]))
else: # we default to online
self.connected = 2
- app.nec.push_incoming_event(OurShowEvent(None, conn=self,
- show=app.SHOW_LIST[self.connected]))
+ app.nec.push_incoming_event(OurShowEvent(
+ None, conn=self, show=app.SHOW_LIST[self.connected]))
def disconnectedReconnCB(self):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ef3cc504d236e1976fa556f57df1612303…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ef3cc504d236e1976fa556f57df1612303…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ff424b50 by Philipp Hörist at 2018-10-01T19:25:10Z
Fix passing wrong type
- - - - -
1 changed file:
- gajim/common/contacts.py
Changes:
=====================================
gajim/common/contacts.py
=====================================
@@ -310,7 +310,7 @@ class LegacyContactsAPI:
status=contact.status, sub=contact.sub, ask=contact.ask,
resource=contact.resource, priority=contact.priority,
keyID=contact.keyID, client_caps=contact.client_caps,
- chatstate=contact.chatstate,
+ chatstate=contact.chatstate_enum,
idle_time=contact.idle_time, avatar_sha=contact.avatar_sha)
def add_contact(self, account, contact):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ff424b50841744e20562b855290b2b48a0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ff424b50841744e20562b855290b2b48a0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4858bb46 by Philipp Hörist at 2018-10-01T05:50:48Z
Fix wrong argument
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
@@ -2189,7 +2189,7 @@ class GroupchatControl(ChatControlBase):
correct_id = None
con = app.connections[self.account]
chatstate = con.get_module('Chatstate').get_active_chatstate(
- self.contact.jid)
+ self.contact)
# Send the message
app.nec.push_outgoing_event(GcMessageOutgoingEvent(
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4858bb46f2d2754e294a10896b0a6deb14…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4858bb46f2d2754e294a10896b0a6deb14…
You're receiving this email because of your account on dev.gajim.org.