Commit Graph

4556 Commits

Author SHA1 Message Date
Philipp Hörist 5cc92efcb6 Drop messages from invalid JIDs silently 2017-03-27 20:35:14 +02:00
Philipp Hörist 6b34ea957e Merge branch 'fix-additional_data-loading' into 'master'
Fix loading of additional_data column from log database

See merge request !72
2017-03-25 22:19:29 +01:00
Markus Böhme d9ab39b03f Fix loading of additional_data column from log database
Currently, the additional_data column is not correctly loaded from the
log database in the logger module's methods get_last_conversation_lines
and get_conversation_for_date. While the JSON data in the column is
parsed, the parsed value is not saved, because the code assumes that
changes to a loop variable are reflected in the list that is iterated
over. Instead, the unparsed JSON string is returned. Fix this by building
a separate list with the JSON string replaced by the parsed JSON object.
2017-03-25 18:58:35 +01:00
Philipp Hörist ba0408855c Fix regression from ad9370af 2017-03-24 23:35:08 +01:00
Philipp Hörist 1e33af7053 Fix KeyError when privacy list is received 2017-03-14 22:32:28 +01:00
Philipp Hörist a0a036f3eb Decline active list when going visible
Declining the active list will switch us to the default list
2017-03-14 22:32:05 +01:00
Philipp Hörist 2c23b36ac3 Remove redundant method 2017-03-14 22:31:43 +01:00
Philipp Hörist 9f5c13b5bb Dont set default list active on block
There could be another list active (eg. invisible)
If we block someone while invisible, setting the default list
active would make us visible again
2017-03-14 22:31:23 +01:00
Philipp Hörist 25b933e294 Dont try to set empty privacy default list
This will result in a conflict stanza because an active
default list cant be deleted

Decline the use of default list first, then delete the list
2017-03-14 22:31:07 +01:00
Philipp Hörist 63335357be Use push event to query privacy list after edit 2017-03-14 22:30:52 +01:00
Philipp Hörist 18e29ebc55 Add blocked contacts always to the default list 2017-03-14 22:30:16 +01:00
Philipp Hörist 5377fc82f7 Dont block contacts only partially
This is needed for better interop with XEP-0191.
The Server doesnt deliver a partial blocked contact as blocked
to a XEP-0191 Client.
2017-03-14 22:29:50 +01:00
Philipp Hörist 69022ab100 Dont treat MAM results as unread messages
Fixes #8544
2017-03-13 23:21:33 +01:00
Philipp Hörist c75c45bc8a Add new Columns to Logs.db 2017-03-13 19:33:16 +01:00
Philipp Hörist 1e06db9fa6 Remove smooth scrolling
GTK3+ does smooth scrolling in ScrolledWindows on its own
2017-03-11 22:11:01 +01:00
Philipp Hörist a44be8e6b6 Merge branch 'master' into 'master'
CSS Styling

See merge request !62
2017-03-04 00:24:48 +01:00
Philipp Hörist 1b975172d6 Merge branch 'history-highlighting' into 'master'
Highlight all paragraphs of a message in the history window

See merge request !46
2017-03-03 23:45:06 +01:00
Philipp Hörist e00341e83e Dont use depracted override_background_color() 2017-03-02 23:58:21 +01:00
Markus Böhme d75ebd95e5 Rework message highlighting in the history window to not use timestamps
Search results in the history window to are scrolled to and highlighted
once the user clicks on one of them. Messages are searched by text in
the log database, but then looked up in the history text buffer via a
visible or invisible timestamp obtained from the database record.

Timestamps in the history text buffer, depending on user configuration,
may only have a coarse granularity. Philipp Hörist discovered that this
may lead to the highlighting of the wrong line in the history text view
and proposed an alternative solution that is implemented in this patch.

Timestamps are abolished as a means of searching messages. Instead, add
a mark with the unique message id (log line id) at the start of every
message in the history text buffer when the conversation is loaded.
After fetching the search results from the database this id can be used
to unambiguously find the corresponding message in the history text
buffer.
2017-03-02 23:55:18 +01:00
Philipp Hörist ddf60b01b3 Parse log arguments earlier 2017-02-25 17:21:03 +01:00
Markus Böhme 665898864f Remove dead code in logger.py method get_search_results_for_query
The method get_search_results_for_query provides a means to search via a
passed in SQL query. This feature has been unused and dead since its initial
commit back in 2005 (commit e542fff69f), so just remove it.
2017-02-22 14:55:44 +01:00
Philipp Hörist 4a7e54347c Merge branch 'appmenu' into 'master'
Port application menu to GMenu

See merge request !52
2017-02-13 00:52:53 +01:00
Philipp Hörist 09f54f97d0 Use platform identifier with better granularity
Fixes #8542
2017-02-12 19:09:49 +01:00
Philipp Hörist 6f8452667d Port application menu to GMenu 2017-02-12 18:17:27 +01:00
Emmanuel Gil Peyrot a4387e8489 Use “… is not …” everywhere instead of “not … is …”. 2017-02-11 02:40:10 +00:00
Emmanuel Gil Peyrot eb51184a95 Fix a few things in common.connection_handlers_events. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot ad9370afa8 Fix a bunch of issues in common.jingle*. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot 57fb80f1fa Remove every default argument using [] or {}. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot 1f9ac730ce Replace long() in remaining python2 code with int(). 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot 381a8f2be8 Remove unnecessary semicolons. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot a7349dc603 common.connection: Fix indentation. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot 2fbadc91e9 Use Enum or IntEnum instead of range() constants. 2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot fb221a692b Remove wrong usage of the list(range(…)) pattern. 2017-02-08 02:26:21 +00:00
Emmanuel Gil Peyrot 5f91455fb9 common.dh: Reformat to follow PEP-0008. 2017-02-08 02:26:20 +00:00
Emmanuel Gil Peyrot 289d82fae7 Remove unused imports. 2017-02-08 02:26:20 +00:00
Yann Leboulanger d338572271 Update strings for better english. Thanks to Allan Nordhøy for the suggestions 2017-02-04 23:29:45 +01:00
Philipp Hörist f59fd73f9c Improve fallback for windows keyring 2017-01-23 19:18:59 +01:00
Philipp Hörist e41a751c7b Add config setting for use of keyring 2017-01-23 19:02:21 +01:00
Philipp Hörist 8c01d4d49f Add GUI folder to configpaths 2017-01-06 20:04:23 +01:00
Philipp Hörist 6d26553b65 Dont windowsify non-config directorys 2017-01-06 20:04:23 +01:00
Philipp Hörist 8079930de0 Add get() function to configpaths 2017-01-06 20:04:22 +01:00
Philipp Hörist 52657e7f18 Remove unicode conversion method for paths
its not needed in python3
- tempfile.gettempdir() returns always unicode
- os.environ.get() returns always unicode

we get what we put into:
- os.path.expanduser()
2017-01-06 20:03:43 +01:00
Philipp Hörist 5af42e4707 Remove old svn code 2017-01-06 20:01:14 +01:00
Philipp Hörist c4e41d6997 Make some paths available before profile init 2017-01-06 20:01:13 +01:00
Philipp Hörist 4afdba2874 Merge branch 'dev' into 'master'
Make verbose logging less verbose

See merge request !19
2017-01-04 23:51:56 +01:00
Philipp Hörist a5cce0c749 Make verbose logging less verbose 2017-01-04 23:28:08 +01:00
Emmanuel Gil Peyrot 3fa2db7c42 Remove demandimport, now unused. 2017-01-04 22:16:03 +00:00
Yann Leboulanger 7b8eec955c Fix some spaces in strings 2017-01-04 13:14:21 +01:00
Yann Leboulanger 65362358a9 ability to have a random string in the resource 2017-01-04 13:14:21 +01:00
Philipp Hörist 39ec724e45 Cleanup Paths/DB creation and init 2017-01-03 23:08:52 +01:00