Philipp Hörist
e3066fb5ca
Improve AccountsWindow design
...
Fixes #8940
2018-04-15 23:36:34 +02:00
Philipp Hörist
93af68f81c
Dont show error when receiving invalid avatars
...
Fixes #9022
2018-04-14 10:34:58 +02:00
Yann Leboulanger
879e03449c
fix some py2->py3 missing things. Fixes #9019
2018-04-07 23:06:48 +02:00
Yann Leboulanger
27e45856b0
prevent traceback. Fixes #9054
2018-04-07 22:04:32 +02:00
Philipp Hörist
711f3cbbb0
Encode filenames before sending
...
Fixes #9039
2018-04-05 19:38:17 +02:00
Philipp Hörist
1b8d76bf9e
Add missing return statement
2018-04-04 22:10:34 +02:00
Philipp Hörist
f29d57e50b
Catch invalid IQ stanzas and log them
...
Fixes #9044
2018-04-03 19:54:09 +02:00
Philipp Hörist
e326aabf5f
Decode PGP decrypted messages
2018-03-31 01:18:28 +02:00
Yann Leboulanger
c2184aaf8c
remove bookmark and close muc when destroying the room. Fixes #8862
2018-03-29 11:01:25 +02:00
Yann Leboulanger
a884ba6762
prevent traceback. Fixes #8936
2018-03-29 09:41:40 +02:00
Yann Leboulanger
f52e8d889c
don't traceback on account deletion. Fixes #8960
2018-03-28 11:36:14 +02:00
Yann Leboulanger
a3853f6958
fix string
2018-03-27 15:02:11 +02:00
Philipp Hörist
5794d54d1c
Dont print status if it has not changed
...
Only print the status, if status has changed or the status message
Clients announce there idle-time with presences but adding a idle-time
does not necessarily mean they went from available -> away
Fixes #9001
2018-03-26 23:47:43 +02:00
Philipp Hörist
99b3aebc99
Remove unused imports
2018-03-26 01:06:56 +02:00
Yann Leboulanger
faa88819a1
improve some strings
2018-03-25 16:26:29 +02:00
Philipp Hörist
040521397e
Dont use invalid sound devices
...
PulseAudio has devices that are None
Fixes #8797
2018-03-25 00:48:29 +01:00
Philipp Hörist
6207e607a8
Fix NoneType Error
...
element can be None if there was a error while calling Gst.ElementFactory.make()
2018-03-24 21:57:40 +01:00
Philipp Hörist
0fb19c2b1c
Show error message on account registration
...
Prefer the error message text over the error code
2018-03-24 17:55:32 +01:00
Philipp Hörist
058d3db1b0
Logger: Test for None after fetchone()
...
fetchone() returns None when nothing is found
len(None) yields a TypeError
2018-03-24 17:13:15 +01:00
Philipp Hörist
77dc975023
Only test if MUCs are on the blacklist
2018-03-24 10:52:16 +01:00
Philipp Hörist
9314a0543b
Add non-compliant mam:2 MUCs to blacklist
...
For MUCs on the blacklist we do a deduplication not depending on
stanza-id
This patch is only for current Prosody 0.10 stable and the mod_mam_muc
module which does not add stanza-id to the messages.
This can be removed once Prosody 0.11 hits or the module is updated
2018-03-24 01:47:03 +01:00
Philipp Hörist
4e1a9db6cc
Remove conditional code for nbxmpp < 0.6.3
2018-03-24 00:19:27 +01:00
Philipp Hörist
b3e6170e57
Remove cacert.pem
...
Dont ship cacerts, use certifi on Windows
2018-03-24 00:17:34 +01:00
Yann Leboulanger
ba48e4530b
don't just ignore when we receive an error to vcard request. Fixes #8965
2018-03-23 22:17:59 +01:00
Philipp Hörist
a218864d91
Add stanza to log output in case of an error
2018-03-21 19:53:07 +01:00
Philipp Hörist
a5db65703b
Fix displaying VCard of unknown contact
...
In some cases sub can be None
Fixes #8954
2018-03-17 20:37:35 +01:00
Philipp Hörist
52c06cd64f
Catch all exceptions when testing Farstream
2018-03-17 12:20:21 +01:00
Philipp Hörist
d8777a78aa
Fix deleting an account that was never connected
...
Fixes #8951
2018-03-17 00:20:11 +01:00
Philipp Hörist
956feb7ac4
Deactivate httpupload for zeroconf
2018-03-11 22:12:00 +01:00
Philipp Hörist
1935a4f40e
Disable ZeroConf account by default
2018-03-07 20:24:08 +01:00
Yann Leboulanger
c40dfe3817
fix traceback at end of file transfer. Fixes #8932
2018-03-06 12:10:37 +01:00
Sebastian Wagner
e740d12727
Defer txt record lookup until connection attempt
...
Don't try to resolve _xmppconnect records for servers before trying to connect.
Prevent warnings from gajim.c.resolver for accounts with "connect on startup" disabled.
2018-03-05 22:55:25 +01:00
Philipp Hörist
882be87a3b
Remove old config migrations
...
No one will ever update from these versions anymore
2018-02-28 22:38:40 +01:00
Philipp Hörist
a4bfd2fcbb
Add get_contact_strict()
...
This adds a method that returns only a contact if there is an exact match,
instead of a contact where only the barejid matches.
We need this when we update the Caps of a contact.
2018-02-26 22:24:30 +01:00
Philipp Hörist
c6e39309cf
Use MessageSentEvent to print to ChatControl
...
Its later than StanzaMessageOutgoingEvent, this allows encryption
Plugins to not return the encrypted payload immediatly.
For example encrypting may take some time because a password is needed
or the load has to be encrypted in another Thread.
2018-02-26 20:49:01 +01:00
Philipp Hörist
77be67f6a8
Only use fallback duplicate search on MAM < 2
2018-02-25 22:02:39 +01:00
Philipp Hörist
51a4c4b5fd
MAM: Display corrected messages on MAM catchup
...
This shows corrected messages correctly in groupchat when we
receive the messages via MAM
2018-02-25 21:20:38 +01:00
Philipp Hörist
c6e7f8628d
MAM: Display received mam message in open chats
2018-02-25 21:04:34 +01:00
Philipp Hörist
994244c910
MAM: Check muc#user namespace before we disco
...
1. Check if the message has the muc#user namespace
2. Check if we have this jid already in the DB
3. Last resort disco the jid
2018-02-22 22:03:55 +01:00
Philipp Hörist
f30564c15c
Dont notify about PMs from MUCs we are not joined
...
The server sends us carbons if one of our other resources has
a conversation in a muc we are not joined.
Instead we log the messages silently.
2018-02-22 21:42:49 +01:00
Philipp Hörist
52fa57795a
Better emoticon theme fallback strategy
...
Fallback must be happening in init_emoticon() instead of PreferencesWindow
2018-02-22 00:37:54 +01:00
Philipp Hörist
eb3a53c791
Refactor emoticon theme combobox
...
- Use ComboBoxText, its much simpler
- Add a dedicated method that returns all available themes
- If the configured Theme is not available fallback to font-emoticons
2018-02-21 23:52:53 +01:00
Philipp Hörist
1fbc6a2304
Tag MUC PMs
...
This gives the server the chance to react accordingly without applying
much logic.
Also it makes it easier for us to recognize MUC PMs in MAM querys
2018-02-21 23:09:30 +01:00
Philipp Hörist
70e0bcc5db
Pass jid as string to find_stanza_id()
2018-02-21 23:01:47 +01:00
Philipp Hörist
015d99ea63
Print correct archive jid in log message
2018-02-21 22:21:35 +01:00
Philipp Hörist
0c7f1937cf
Fix duplicates for self messages and MUC PMs
...
Fixes #8812
2018-02-21 22:09:13 +01:00
Philipp Hörist
17fc8ff927
Limit deduplication to correct archive
...
We limit the search to non-groupchat messages because a stanza id
is only unique within an archive
2018-02-21 19:23:26 +01:00
Yann Leboulanger
4149bcacb9
add index on stanza_id column to speed up de-duplication when syncing logs
2018-02-17 18:37:22 +01:00
Philipp Hörist
877b754ef3
Simplfy writing to config file
...
- use `with` statement and open() instead of os.open()
- execute run() on dialog, otherwise sys.exit() is called immediatly
2018-02-12 23:39:50 +01:00
Philipp Hörist
fb4b262477
Dont use getTimestamp()
...
getTimestamp() generates always a timestring with a resolution of seconds and
this means time gets always rounded down.
Because we use a resolution of .00000 precision for outgoing messages this
can lead to wrongly sorted messages.
2018-02-12 21:27:55 +01:00