Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e20f0440 by Philipp Hörist at 2018-06-19T19:05:44+02:00
Increase timeframe for duplicate search
A too short timeframe leads to not recognizing duplicates if the server
time differs from the user time. This is only a problem with mam:1
Fixes #8750
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
--- a/gajim/common/logger.py
+++ b/gajim/common/logger.py
@@ -1235,8 +1235,8 @@ class Logger:
"""
# Add 10 seconds around the timestamp
- start_time = timestamp - 10
- end_time = timestamp + 10
+ start_time = timestamp - 30
+ end_time = timestamp + 30
account_id = self.get_account_id(account)
log.debug('start: %s, end: %s, jid: %s, message: %s',
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e20f044001b8fb0e1d6e42100201d8a62a…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e20f044001b8fb0e1d6e42100201d8a62a…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
1870f560 by Alexander Krotov at 2018-06-19T01:56:18+03:00
Spellcheck some comments and docstrings
- - - - -
5 changed files:
- gajim/adhoc_commands.py
- gajim/config.py
- gajim/disco.py
- gajim/emoticons.py
- gajim/groupchat_control.py
Changes:
=====================================
gajim/adhoc_commands.py
=====================================
--- a/gajim/adhoc_commands.py
+++ b/gajim/adhoc_commands.py
@@ -550,7 +550,7 @@ class CommandWindow:
progressbar.pulse()
return True # important to keep callback be called back!
- # 12 times per second (80 miliseconds)
+ # 12 times per second (80 milliseconds)
self.pulse_id = GLib.timeout_add(80, callback)
def remove_pulsing(self):
=====================================
gajim/config.py
=====================================
--- a/gajim/config.py
+++ b/gajim/config.py
@@ -1893,7 +1893,7 @@ class ManageBookmarksWindow:
self.ignore_events = False
- # Account-JID, RoomName, Room-JID, Autojoin, Minimize, Passowrd, Nick,
+ # Account-JID, RoomName, Room-JID, Autojoin, Minimize, Password, Nick,
# Show_Status
self.treestore = Gtk.TreeStore(str, str, str, bool, bool, str, str, str)
self.treestore.set_sort_column_id(1, Gtk.SortType.ASCENDING)
=====================================
gajim/disco.py
=====================================
--- a/gajim/disco.py
+++ b/gajim/disco.py
@@ -211,7 +211,7 @@ class Closure(object):
"""
A weak reference to a callback with arguments as an object
- Weak references to methods immediatly die, even if the object is still
+ Weak references to methods immediately die, even if the object is still
alive. Besides a handy way to store a callback, this provides a workaround
that keeps a reference to the object instead.
@@ -1248,7 +1248,7 @@ class ToplevelAgentBrowser(AgentBrowser):
def _create_treemodel(self):
# JID, node, icon, description, state
- # state is None on sucess or has a string
+ # state is None on success or has a string
# from LABELS on error or while fetching
view = self.window.services_treeview
self.model = Gtk.TreeStore(str, str, GdkPixbuf.Pixbuf, str, str)
@@ -1441,7 +1441,7 @@ class ToplevelAgentBrowser(AgentBrowser):
self.execute_button.set_sensitive(True)
if self.search_button and nbxmpp.NS_SEARCH in features:
self.search_button.set_sensitive(True)
- # Don't autorize to register with a server via disco
+ # Don't authorize to register with a server via disco
if self.register_button and nbxmpp.NS_REGISTER in features and \
jid != self.jid:
# We can register this agent
@@ -1824,7 +1824,7 @@ class MucBrowser(AgentBrowser):
def on_scroll(self, *args):
"""
- Scrollwindow callback to trigger new queries on scolling
+ Scrollwindow callback to trigger new queries on scrolling
"""
# This apparently happens when inactive sometimes
self._query_visible()
@@ -1860,7 +1860,7 @@ class MucBrowser(AgentBrowser):
def _channel_altinfo(self, jid, node, items, name = None):
"""
- Callback for the alternate disco#items query. We try to atleast get the
+ Callback for the alternate disco#items query. We try to at least get the
amount of users in the room if the service does not support MUC dataforms
"""
if items == 0:
@@ -1958,7 +1958,7 @@ class DiscussionGroupsBrowser(AgentBrowser):
"""
Create treemodel for the window
"""
- # JID, node, name (with description) - pango markup, dont have info?, subscribed?
+ # JID, node, name (with description) - pango markup, don't have info?, subscribed?
self.model = Gtk.TreeStore(str, str, str, bool, bool)
# sort by name
self.model.set_sort_column_id(2, Gtk.SortType.ASCENDING)
=====================================
gajim/emoticons.py
=====================================
--- a/gajim/emoticons.py
+++ b/gajim/emoticons.py
@@ -311,7 +311,7 @@ class EmoticonPopover(Gtk.Popover):
def do_destroy(self):
# Remove the references we hold to other objects
self.text_widget = None
- # Even though we dont destroy the Popover, handlers are getting
+ # Even though we don't destroy the Popover, handlers are getting
# still disconnected, which makes the handler_id invalid
# FIXME: find out how we can prevent handlers getting disconnected
self.handler_id = None
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -75,7 +75,7 @@ log = logging.getLogger('gajim.groupchat_control')
@unique
class Column(IntEnum):
IMG = 0 # image to show state (online, new message etc)
- NICK = 1 # contact nickame or ROLE name
+ NICK = 1 # contact nickname or ROLE name
TYPE = 2 # type of the row ('contact' or 'role')
TEXT = 3 # text shown in the cellrenderer
AVATAR_IMG = 4 # avatar of the contact
@@ -725,7 +725,7 @@ class GroupchatControl(ChatControlBase):
def _on_minimize(self, action, param):
"""
- When a grouchat is minimized, unparent the tab, put it in roster etc
+ When a groupchat is minimized, unparent the tab, put it in roster etc
"""
action.set_state(param)
non_minimized_gc = app.config.get_per(
@@ -843,7 +843,7 @@ class GroupchatControl(ChatControlBase):
def tree_compare_iters(self, model, iter1, iter2, data=None):
"""
- Compare two iters to sort them
+ Compare two iterators to sort them
"""
type1 = model[iter1][Column.TYPE]
type2 = model[iter2][Column.TYPE]
@@ -2315,7 +2315,7 @@ class GroupchatControl(ChatControlBase):
return
includes = app.config.get('confirm_close_muc_rooms').split(' ')
excludes = app.config.get('noconfirm_close_muc_rooms').split(' ')
- # whether to ask for comfirmation before closing muc
+ # whether to ask for confirmation before closing muc
if (app.config.get('confirm_close_muc') or self.room_jid in includes)\
and app.gc_connected[self.account][self.room_jid] and self.room_jid \
not in excludes:
@@ -2460,7 +2460,7 @@ class GroupchatControl(ChatControlBase):
fjid = self.room_jid + '/' + nick
if nick.lower().startswith(begin.lower()) and not \
helpers.jid_is_blocked(self.account, fjid):
- # the word is the begining of a nick
+ # the word is the beginning of a nick
self.nick_hits.append(nick)
if len(self.nick_hits):
if len(splitted_text) < 2 or with_refer_to_nick_char:
@@ -2472,13 +2472,13 @@ class GroupchatControl(ChatControlBase):
start_iter = end_iter.copy()
if self.last_key_tabs and with_refer_to_nick_char or (text and \
text[-1] == ' '):
- # have to accomodate for the added space from last
+ # have to accommodate for the added space from last
# completion
# gc_refer_to_nick_char may be more than one char!
start_iter.backward_chars(len(begin) + len(add))
elif self.last_key_tabs and not app.config.get(
'shell_like_completion'):
- # have to accomodate for the added space from last
+ # have to accommodate for the added space from last
# completion
start_iter.backward_chars(len(begin) + \
len(gc_refer_to_nick_char))
@@ -2730,8 +2730,8 @@ class GroupchatControl(ChatControlBase):
def on_row_activated(self, widget, path):
"""
- When an iter is activated (dubblick or single click if gnome is set this
- way
+ When an iter is activated (double click or single click if gnome
+ is set this way)
"""
if path.get_depth() == 1: # It's a group
if (widget.row_expanded(path)):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1870f560a492f0be1508b5f1525c860bd8…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/1870f560a492f0be1508b5f1525c860bd8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3c1490a3 by Philipp Hörist at 2018-06-17T23:21:29+02:00
Remove forward message adhoc commands
These commands introduce security concerns because how they interact
with encrypted messages.
With MAM and Carbons installed on nearly every server these Adhoc commands
became not useful anymore
- - - - -
1 changed file:
- gajim/common/commands.py
Changes:
=====================================
gajim/common/commands.py
=====================================
--- a/gajim/common/commands.py
+++ b/gajim/common/commands.py
@@ -26,7 +26,6 @@ import nbxmpp
from gajim.common import helpers
from gajim.common import dataforms
from gajim.common import app
-from gajim.common.connection_handlers_events import MessageOutgoingEvent
import logging
log = logging.getLogger('gajim.c.commands')
@@ -277,80 +276,6 @@ class LeaveGroupchatsCommand(AdHocCommand):
return False
-class ForwardMessagesCommand(AdHocCommand):
- # http://www.xmpp.org/extensions/xep-0146.html#forward
- commandnode = 'forward-messages'
- commandname = _('Forward unread messages')
-
- @staticmethod
- def isVisibleFor(samejid):
- """
- Forward messages is visible only if the entity has the same bare jid
- """
- return samejid
-
- def execute(self, request):
- account = self.connection.name
- # Forward messages
- events = app.events.get_events(account, types=['chat', 'normal',
- 'printed_chat'])
- j, resource = app.get_room_and_nick_from_fjid(self.jid)
- for jid in events:
- for event in events[jid]:
- ev_typ = event.type_
- if ev_typ == 'printed_chat':
- ev_typ = 'chat'
- app.nec.push_outgoing_event(MessageOutgoingEvent(None,
- account=account, jid=j, message=event.message, type_=ev_typ,
- subject=event.subject, resource=resource, forward_from=jid,
- delayed=event.time_))
-
- # Inform other client of completion
- response, cmd = self.buildResponse(request, status = 'completed')
- cmd.addChild('note', {}, _('All unread messages have been forwarded.'))
-
- self.connection.connection.send(response)
-
- return False # finish the session
-
-class FwdMsgThenDisconnectCommand(AdHocCommand):
- commandnode = 'fwd-msd-disconnect'
- commandname = _('Forward unread message then disconnect')
-
- @staticmethod
- def isVisibleFor(samejid):
- """
- Forward unread messages then disconnect is visible only if the entity has the same bare jid
- """
- return samejid
-
- def execute(self, request):
- account = self.connection.name
- # Forward messages
- events = app.events.get_events(account, types=['chat', 'normal'])
- j, resource = app.get_room_and_nick_from_fjid(self.jid)
- for jid in events:
- for event in events[jid]:
- ev_typ = event.type_
- if ev_typ == 'printed_chat':
- ev_typ = 'chat'
- app.nec.push_outgoing_event(MessageOutgoingEvent(None,
- account=account, jid=j, message=event.message, type_=ev_typ,
- subject=event.subject, resource=resource, forward_from=jid,
- delayed=event.time_, now=True))
-
- response, cmd = self.buildResponse(request, status = 'completed')
- cmd.addChild('note', {}, _('The status has been changed.'))
-
- # if going offline, we need to push response so it won't go into
- # queue and disappear
- self.connection.connection.send(response, now = True)
-
- # send new status
- app.interface.roster.send_status(self.connection.name, 'offline', '')
- # finish the session
- return False
-
class ConnectionCommands:
"""
This class depends on that it is a part of Connection() class
@@ -360,8 +285,7 @@ class ConnectionCommands:
# a list of all commands exposed: node -> command class
self.__commands = {}
if app.config.get('remote_commands'):
- for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
- LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
+ for cmdobj in (ChangeStatusCommand, LeaveGroupchatsCommand):
self.__commands[cmdobj.commandnode] = cmdobj
# a list of sessions; keys are tuples (jid, sessionid, node)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3c1490a3066515ff1f9adaff7f9dc102f0…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3c1490a3066515ff1f9adaff7f9dc102f0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
956a4201 by Alexander Krotov at 2018-06-17T20:09:32+02:00
Fix docstrings for XEP-0146 commands
- - - - -
1 changed file:
- gajim/common/commands.py
Changes:
=====================================
gajim/common/commands.py
=====================================
--- a/gajim/common/commands.py
+++ b/gajim/common/commands.py
@@ -198,7 +198,7 @@ class LeaveGroupchatsCommand(AdHocCommand):
@staticmethod
def isVisibleFor(samejid):
"""
- Change status is visible only if the entity has the same bare jid
+ Leave groupchats is visible only if the entity has the same bare jid
"""
return samejid
@@ -285,7 +285,7 @@ class ForwardMessagesCommand(AdHocCommand):
@staticmethod
def isVisibleFor(samejid):
"""
- Change status is visible only if the entity has the same bare jid
+ Forward messages is visible only if the entity has the same bare jid
"""
return samejid
@@ -320,7 +320,7 @@ class FwdMsgThenDisconnectCommand(AdHocCommand):
@staticmethod
def isVisibleFor(samejid):
"""
- Change status is visible only if the entity has the same bare jid
+ Forward unread messages then disconnect is visible only if the entity has the same bare jid
"""
return samejid
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/956a42017147384e9e07b7fe2e5a6814f4…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/956a42017147384e9e07b7fe2e5a6814f4…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6492d159 by Philipp Hörist at 2018-06-06T21:19:18+02:00
Contacts should not be added to Zeroconf account
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -861,6 +861,8 @@ class AddNewContactWindow:
# fill accounts with active accounts
accounts = []
for account in app.connections.keys():
+ if account == 'Local':
+ continue
if app.connections[account].connected > 1:
accounts.append(account)
if not accounts:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6492d159189e89456f29a3117bf9fdc57c…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6492d159189e89456f29a3117bf9fdc57c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6985da75 by André Apitzsch at 2018-06-06T00:19:06+02:00
Flatpak: fix dbus build
after package update only python2 version was build
- - - - -
1 changed file:
- org.gajim.Gajim.json
Changes:
=====================================
org.gajim.Gajim.json
=====================================
--- a/org.gajim.Gajim.json
+++ b/org.gajim.Gajim.json
@@ -215,6 +215,11 @@
},
{
"name": "python3-dbus-python",
+ "build-options": {
+ "env": {
+ "PYTHON_VERSION": "3"
+ }
+ },
"sources": [
{
"type": "archive",
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6985da75b468bb99ae0585b12127bdda88…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6985da75b468bb99ae0585b12127bdda88…
You're receiving this email because of your account on dev.gajim.org.