Philipp Hörist pushed to branch gajim_0.16 at gajim / gajim
Commits:
d3437d61 by Philipp Hörist at 2017-06-01T20:33:39+02:00
Rejoin MUCs unconditionally on SignedInEvent
There is no reason that any Groupchat should be treated as already connected when we sign in.
- - - - -
1 changed file:
- src/groupchat_control.py
Changes:
=====================================
src/groupchat_control.py
=====================================
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1365,9 +1365,6 @@ class GroupchatControl(ChatControlBase):
def _nec_signed_in(self, obj):
if obj.conn.name != self.account:
return
- if self.room_jid in gajim.gc_connected[obj.conn.name] and \
- gajim.gc_connected[obj.conn.name][self.room_jid]:
- return
password = gajim.gc_passwords.get(self.room_jid, '')
obj.conn.join_gc(self.nick, self.room_jid, password, rejoin=True)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d3437d61cba9e1f368f47beca0f800131e…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f803b544 by Philipp Hörist at 2017-06-01T19:10:06+02:00
Rejoin MUCs unconditionally on SignedInEvent
There is no reason that any Groupchat should be treated as already connected when we sign in.
- - - - -
1 changed file:
- src/groupchat_control.py
Changes:
=====================================
src/groupchat_control.py
=====================================
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1378,9 +1378,6 @@ class GroupchatControl(ChatControlBase):
def _nec_signed_in(self, obj):
if obj.conn.name != self.account:
return
- if self.room_jid in gajim.gc_connected[obj.conn.name] and \
- gajim.gc_connected[obj.conn.name][self.room_jid]:
- return
password = gajim.gc_passwords.get(self.room_jid, '')
obj.conn.join_gc(self.nick, self.room_jid, password, rejoin=True)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f803b544bc57d12bc547ff9515bd072043…
Philipp Hörist pushed to branch gajim_0.16 at gajim / gajim
Commits:
b567bba5 by Philipp Hörist at 2017-05-26T23:55:06+02:00
Add config option to activate XEP-0146 commands
Some of the Commands have security implications, thats why we disable them per default
Fixes #8378
- - - - -
2 changed files:
- src/common/commands.py
- src/common/config.py
Changes:
=====================================
src/common/commands.py
=====================================
--- a/src/common/commands.py
+++ b/src/common/commands.py
@@ -345,9 +345,10 @@ class ConnectionCommands:
def __init__(self):
# a list of all commands exposed: node -> command class
self.__commands = {}
- for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
- LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
- self.__commands[cmdobj.commandnode] = cmdobj
+ if gajim.config.get('remote_commands'):
+ for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
+ LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
+ self.__commands[cmdobj.commandnode] = cmdobj
# a list of sessions; keys are tuples (jid, sessionid, node)
self.__sessions = {}
=====================================
src/common/config.py
=====================================
--- a/src/common/config.py
+++ b/src/common/config.py
@@ -315,6 +315,7 @@ class Config:
'remember_opened_chat_controls': [ opt_bool, True, _('If enabled, Gajim will reopen chat windows that were opened last time Gajim was closed.')],
'positive_184_ack': [ opt_bool, False, _('If enabled, Gajim will show an icon to show that sent message has been received by your contact')],
'pgp_encoding': [ opt_str, '', _('Sets the encoding used by python-gnupg'), True],
+ 'remote_commands': [opt_bool, False, _('If True, Gajim will execute XEP-0146 Commands.')],
}, {})
__options_per_key = {
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b567bba56c814e8834e4fca3ee4acbb54a…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
cb65cfc5 by Philipp Hörist at 2017-05-26T23:10:05+02:00
Add config option to activate XEP-0146 commands
Some of the Commands have security implications, thats why we disable them per default
Fixes #8378
- - - - -
2 changed files:
- src/common/commands.py
- src/common/config.py
Changes:
=====================================
src/common/commands.py
=====================================
--- a/src/common/commands.py
+++ b/src/common/commands.py
@@ -345,9 +345,10 @@ class ConnectionCommands:
def __init__(self):
# a list of all commands exposed: node -> command class
self.__commands = {}
- for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
- LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
- self.__commands[cmdobj.commandnode] = cmdobj
+ if gajim.config.get('remote_commands'):
+ for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
+ LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
+ self.__commands[cmdobj.commandnode] = cmdobj
# a list of sessions; keys are tuples (jid, sessionid, node)
self.__sessions = {}
=====================================
src/common/config.py
=====================================
--- a/src/common/config.py
+++ b/src/common/config.py
@@ -315,6 +315,7 @@ class Config:
'show_avatar_in_tabs': [ opt_bool, False, _('Show a mini avatar in chat window tabs and in window icon')],
'use_keyring': [opt_bool, True, _('If True, Gajim will use the Systems Keyring to store account passwords.')],
'pgp_encoding': [ opt_str, '', _('Sets the encoding used by python-gnupg'), True],
+ 'remote_commands': [opt_bool, False, _('If True, Gajim will execute XEP-0146 Commands.')],
}, {})
__options_per_key = {
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/cb65cfc5aed9efe05208ebbb7fb2d41fcf…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9827c63f by Philipp Hörist at 2017-05-20T10:25:51+02:00
Clone correct project for windows build
- - - - -
1 changed file:
- appveyor.yml
Changes:
=====================================
appveyor.yml
=====================================
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -22,7 +22,7 @@ install:
}
bash 'pacman -Sy --noconfirm git'
- bash 'git clone https://dev.gajim.org/lovetox/gajim.git'
+ bash 'git clone https://dev.gajim.org/gajim/gajim.git'
- cmd: '%MSYS% C:/msys64/home/appveyor/gajim/win/build.sh'
# Ugly workaround, because i found no way to tell when mingw32.exe returns
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9827c63f5f341f63dca521f19a70be825e…