Philipp Hörist pushed to branch master at gajim / gajim
Commits:
093ba8dd by Philipp Hörist at 2018-05-10T10:53:56+02:00
Provide method to get the account name from a jid
- - - - -
1 changed file:
- gajim/common/app.py
Changes:
=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -483,6 +483,11 @@ def get_jid_from_account(account_name):
jid = name + '@' + hostname
return jid
+def get_account_from_jid(jid):
+ for account in app.config.get_per('accounts'):
+ if jid == get_jid_from_account(account):
+ return jid
+
def get_our_jids():
"""
Returns a list of the jids we use in our accounts
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/093ba8dd97716d41e1d53f4db170dc7410…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/093ba8dd97716d41e1d53f4db170dc7410…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2bb5d55c by Philipp Hörist at 2018-05-08T19:20:11+02:00
Add conversion from account_id to account jid
To use this alias `account_id` with `account`
Example: SELECT account_id as account FROM logs
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
--- a/gajim/common/logger.py
+++ b/gajim/common/logger.py
@@ -127,6 +127,7 @@ log = logging.getLogger('gajim.c.logger')
class Logger:
def __init__(self):
self._jid_ids = {}
+ self._jid_ids_reversed = {}
self._con = None
self._commit_timout_id = None
self._log_db_path = configpaths.get('LOG_DB')
@@ -247,8 +248,7 @@ class Logger:
log.exception('Error')
sys.exit()
- @staticmethod
- def namedtuple_factory(cursor, row):
+ def namedtuple_factory(self, cursor, row):
"""
Usage:
con.row_factory = namedtuple_factory
@@ -259,6 +259,13 @@ class Logger:
if 'additional_data' in fields:
named_row = named_row._replace(
additional_data=json.loads(named_row.additional_data or '{}'))
+
+ # if an alias `account` for the field `account_id` is used for the
+ # query, the account_id is converted to the account jid
+ if 'account' in fields:
+ if named_row.account:
+ jid = self._jid_ids_reversed[named_row.account].jid
+ named_row = named_row._replace(account=jid)
return named_row
def dispatch(self, event, error):
@@ -336,6 +343,7 @@ class Logger:
'SELECT jid_id, jid, type FROM jids').fetchall()
for row in rows:
self._jid_ids[row.jid] = row
+ self._jid_ids_reversed[row.jid_id] = row
def get_jids_in_db(self):
return self._jid_ids.keys()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2bb5d55c03941642cf03f72792b1550ee6…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2bb5d55c03941642cf03f72792b1550ee6…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8b9eb59e by Philipp Hörist at 2018-05-07T18:04:24+02:00
Set no-store hint on groupchat chatstates
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -2683,6 +2683,8 @@ class Connection(CommonConnection, ConnectionHandlers):
if obj.chatstate:
msg_iq.setTag(obj.chatstate, namespace=nbxmpp.NS_CHATSTATES)
+ if not obj.message:
+ msg_iq.setTag('no-store', namespace=nbxmpp.NS_MSG_HINTS)
if obj.label is not None:
msg_iq.addChild(node=obj.label)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8b9eb59ee4d2b3cbccc94ce8d72e6f0472…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8b9eb59ee4d2b3cbccc94ce8d72e6f0472…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
63bd4967 by Philipp Hörist at 2018-05-06T13:47:46+02:00
Update ChangeLog
- - - - -
1 changed file:
- ChangeLog
Changes:
=====================================
ChangeLog
=====================================
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Gajim 1.1.0 (TBA)
+
+ * Support http:upload:0
+ * Support for displaying/uploading avatars for rooms
+ * Support for PKIX over Secure HTTP (POSH)
+
Gajim 1.0.2 (30 April 2018)
Bugs fixed:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/63bd4967d921deb5217568c042a44e5c3b…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/63bd4967d921deb5217568c042a44e5c3b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1ecf0ec0 by Philipp Hörist at 2018-05-06T09:17:58+02:00
Use NativeFileChoosers on Windows and MacOS
These platforms integrate a file preview in their native filechoosers
- - - - -
1 changed file:
- gajim/filechoosers.py
Changes:
=====================================
gajim/filechoosers.py
=====================================
--- a/gajim/filechoosers.py
+++ b/gajim/filechoosers.py
@@ -18,6 +18,7 @@
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
import os
+import sys
from pathlib import Path
from collections import namedtuple
@@ -138,7 +139,7 @@ class FileSaveDialog(NativeFileChooserDialog):
class AvatarSaveDialog(FileSaveDialog):
- if os.name == 'nt':
+ if sys.platform == 'win32':
_filters = [Filter(_('Images'), '*.png;*.jpg;*.jpeg;*.svg', True)]
@@ -199,14 +200,22 @@ class GtkAvatarChooserDialog(BaseAvatarChooserDialog, GtkFileChooserDialog):
def FileChooserDialog(*args, **kwargs):
- if app.is_flatpak():
+ if _require_native():
return NativeFileOpenDialog(*args, **kwargs)
else:
return GtkFileOpenDialog(*args, **kwargs)
def AvatarChooserDialog(*args, **kwargs):
- if app.is_flatpak():
+ if _require_native():
return NativeAvatarChooserDialog(*args, **kwargs)
else:
return GtkAvatarChooserDialog(*args, **kwargs)
+
+
+def _require_native():
+ if app.is_flatpak():
+ return True
+ if sys.platform in ('win32', 'darwin'):
+ return True
+ return False
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1ecf0ec0088e7c6d12fedce665e2871469…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1ecf0ec0088e7c6d12fedce665e2871469…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e9a4b372 by Markus Wintermann at 2018-05-05T14:19:17+02:00
Select account in account list if edited
Before: After a rightclick -> "Modify Account" on an account in the
roster the preferences of the account are shown but the account is not
selected in the account list.
After: account will be selected in the account list too
- - - - -
1 changed file:
- gajim/accounts_window.py
Changes:
=====================================
gajim/accounts_window.py
=====================================
--- a/gajim/accounts_window.py
+++ b/gajim/accounts_window.py
@@ -225,6 +225,7 @@ class AccountsWindow(Gtk.ApplicationWindow):
def select_account(self, account):
for row in self.account_list.get_children():
if row.get_child().account == account:
+ self.account_list.select_row(row)
self.account_list.emit('row-activated', row)
break
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e9a4b372e2d998074b971164d280378630…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e9a4b372e2d998074b971164d280378630…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ad4c1347 by Marcin Mielniczuk at 2018-05-02T20:19:24+02:00
Be more descriptive about the ascii_emoticons configuration option
- - - - -
1 changed file:
- gajim/common/config.py
Changes:
=====================================
gajim/common/config.py
=====================================
--- a/gajim/common/config.py
+++ b/gajim/common/config.py
@@ -124,7 +124,7 @@ class Config:
'print_time': [ opt_str, 'always', _('\'always\' - print time for every message.\n\'sometimes\' - print time every print_ichat_every_foo_minutes minute.\n\'never\' - never print time.')],
'print_time_fuzzy': [ opt_int, 0, _('Print time in chats using Fuzzy Clock. Value of fuzziness from 1 to 4, or 0 to disable fuzzyclock. 1 is the most precise clock, 4 the least precise one. This is used only if print_time is \'sometimes\'.') ],
'emoticons_theme': [opt_str, 'noto-emoticons', '', True ],
- 'ascii_emoticons': [opt_bool, True, _('Enable ASCII emoticons'), True],
+ 'ascii_emoticons': [opt_bool, True, _('When enabled, ASCII emoticons will be converted to graphical emojis.'), True],
'ascii_formatting': [ opt_bool, True,
_('Treat * / _ pairs as possible formatting characters.'), True],
'show_ascii_formatting_chars': [ opt_bool, True, _('If true, do not '
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ad4c1347ffd8b46045a13fe831f8d77c74…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ad4c1347ffd8b46045a13fe831f8d77c74…
You're receiving this email because of your account on dev.gajim.org.