Philipp Hörist
54eb1cbbb8
Simplify log_message()
...
- Pass EventObj instead of variables
- decrease indent level
- check all conditions inside log_message() not before calling
- fixed bug where gc private messages where not logged with the correct jid
2017-04-12 22:30:28 +02:00
Philipp Hörist
bbb5c0f50d
Simplify sending message
...
- Dont use callbacks, they have no gain in that situation and make the code hard to read
- pass the whole object to a new Event instead of many vars
2017-04-06 23:21:19 +02:00
Philipp Hörist
298ba4d939
Fix Last Message Correction for PGP messages
2017-04-04 23:21:11 +02:00
Philipp Hörist
caba5e1723
Rename _on_continue_message()
...
_build_message_stanza is a better fitting name
2017-04-04 21:55:16 +02:00
Philipp Hörist
28a3a58ea9
Refactor encrypting PGP Message
...
- Add a _encrypt_message() and _finished_encrypt() method
- Handle Fallback body text in _on_continue_message() where we build the Stanza
2017-04-04 21:31:00 +02:00
Philipp Hörist
d344c24a2a
Pass EventObject around instead of many vars
...
This makes it much easier to read and modify
2017-04-04 21:30:48 +02: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
6f8452667d
Port application menu to GMenu
2017-02-12 18:17:27 +01:00
Emmanuel Gil Peyrot
57fb80f1fa
Remove every default argument using [] or {}.
2017-02-11 02:40:07 +00:00
Emmanuel Gil Peyrot
a7349dc603
common.connection: Fix indentation.
2017-02-11 02:40:07 +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
Yann Leboulanger
65362358a9
ability to have a random string in the resource
2017-01-04 13:14:21 +01:00
Yann Leboulanger
458d1083bc
do not list all keys when we want to know if we have a key. Fixes #8477
2016-12-17 14:06:36 +01:00
Yann Leboulanger
7b3d595665
fix time.time() call. Fixes #8446
2016-11-28 22:23:42 +01:00
lovetox
7cb31512c6
Add no-store hint to ChatStates
2016-10-18 16:26:03 +02:00
lovetox
4c482cbfe8
Store optional fields correctly in Bookmarks
2016-10-10 19:10:18 +02:00
lovetox
a8586ec20a
Fix missing time reference - Fixes #8399
2016-10-03 16:34:16 +02:00
Yann Leboulanger
57b2f234c1
Limit time to reconnect to 5 minutes. Fixes #8393
2016-09-18 15:15:10 +02:00
tmolitor
556afac134
Added ability to use additional_data for directly sent messages not coming from history db.
2016-09-05 23:07:31 +02:00
tmolitor
235cadd5cc
Corrected last commit and added ability to set and log additional_data for outgoing messages as well (and for gc messages, too)
2016-09-05 01:43:39 +02:00
Philipp Hörist
e645f4e838
add new event for gc after message stanza is built so it can be modified by plugins
2016-06-24 20:12:37 +02:00
tmolitor
ac729ce050
Some more bugfixes (see 0.16 branch)
2016-07-17 14:29:53 +02:00
Yann Leboulanger
7c2c4cd0ac
prevent traceback. Fixes #7978
2016-04-03 21:32:53 +02:00
Yann Leboulanger
759cfc6336
do not warn when tls cert changes for a valid one
2016-04-02 14:06:20 +02:00
tmolitor
0e80db2be6
don't show delivery error messages for automatic message stanzas. Fixes #8222
2016-02-08 22:31:36 +01:00
Yann Leboulanger
9fbd7efa2a
correctly store and restore single message subject. Fixes #8251
2016-01-31 19:58:51 +01:00
Yann Leboulanger
bc880bd892
send password of the room when we invite a contact in it. Fixes #8197
2015-12-02 23:05:10 +01:00
Yann Leboulanger
e2c1e96685
once we are connected to a server with starttls, don't try to connect with the legacy port
2015-11-22 20:10:33 +01:00
Yann Leboulanger
23ee168a91
do not set <no-permanent-storage/> hint for GPG encrypted messages. Fixes #8123
2015-11-21 14:31:07 +01:00
Yann Leboulanger
d318481176
Correctly check and handle the case when we don't trust our own key. Fixes #8122
2015-11-01 16:30:27 +01:00
Yann Leboulanger
5b513f763e
request archiving preferences only if server announce it supports it, and don't think it supports it while it's buggy. Fixes #7839
2015-09-30 20:00:48 +02:00
Yann Leboulanger
9a5891bb4c
add new event after message stanza is built so it can be modified by plugins. Fixes #8150
2015-09-23 22:39:11 +02:00
Yann Leboulanger
44822d3837
update XEP-0334 (Message Processing Hints) to V0.2
2015-09-13 13:57:04 +02:00
Yann Leboulanger
1eba16df6e
show error message when we try to connect anonymously to a server that doesn't support anonymous connection. Fixes #8138
2015-08-31 13:47:18 +02:00
Yann Leboulanger
15fce42a60
prevent traceback
2015-07-28 20:19:19 +02:00
Yann Leboulanger
42cec3e7f2
do not crash when authentication with server fails. Fixes #8115
2015-07-27 13:36:49 +02:00
Yann Leboulanger
f74c83535f
don't reconnect twice when connection is lost
2015-07-26 14:05:47 +02:00
Yann Leboulanger
d69fcc9e1e
prevent warning
2015-07-31 22:08:00 +02:00
Yann Leboulanger
70e8b130ac
[moparisthebest] Encrypt GPG message to recipient and to our own key so that we can decrypt it later and use carbon. Fixes #7616
2015-07-13 21:39:12 +02:00
Yann Leboulanger
9f3fec4ef7
don't request privacy lists when connecting if server doesn't support that. Fixes #7990
2015-03-07 15:04:41 +01:00
Yann Leboulanger
09bf2fbd64
Zeroconf doesn't support archiving
2014-11-26 21:41:09 +01:00
Yann Leboulanger
0a8af73650
add XEP-313 (MAM) support
2014-11-11 15:28:24 +01:00
Yann Leboulanger
f42499acdb
warn user when custom hostname is wrong. Fixes #7489
2014-11-09 14:03:01 +01:00