Commit Graph

241 Commits

Author SHA1 Message Date
André Apitzsch 125ce523e4 Rename src directory 2017-07-02 17:25:47 +02:00
Emmanuel Gil Peyrot 71f0e40c94 Update JingleFT to its latest experimental version 2017-06-14 20:26:37 +01:00
Philipp Hörist 2c34dd6d45 Show encryption icon in chat 2017-06-11 20:06:34 +02:00
Philipp Hörist ef8229615a Dont save sent MessageStanza for LMC use
There are mutliple reasons why this is not a good idea

1. It places work on encryption Plugins, as many encryption attributes inside the
stanza can not be resend again (OMEMO, OTR), so the plugins have to make sure none of
these attr are inside the LMC stanza

2. In general its not obvious for plugin devs that a stanza issued after LMC has to be
treated differently. There should be no negative effects, even when a contributor not knowing
about LMC at all.

This commit saves only the stanza id, and adds the replace tag on the new message.
This results also in less code.
2017-06-02 03:32:46 +02:00
Philipp Hörist cf07022cbd Remove ESessions encryption/decryption from core 2017-05-07 18:40:05 +02:00
Philipp Hörist 3fd35a041e Remove PGP encryption/decryption from core 2017-05-07 18:38:33 +02:00
Philipp Hörist 5116af037b Add Encryption Plugin API
- Add extension points when receiving/sending a message
- Add extension point for setting the lock image
- Add extension point after clicking the send button
- Add extension point when typing
- Add a new menu button to choose the desired encryption
- Extend the PluginManager to hold a list of encryption plugins
2017-05-07 18:38:06 +02:00
Philipp Hörist d346333d2a Drop some message from ourself
- 'received'-Carbons from ourself, because we either received
   the message directly or got a 'sent'-Carbon about it
-  Messages from our own full jid, this can happen when we send
   a Message to ourself and no other resource is online.
2017-05-01 19:08:19 +02:00
Philipp Hörist 64ae063f9c Fix mediated groupchat invites
- Push Invitation and Decline event much earlier
- Refactor Logic to decide if mediated or not
  Ejabbered 17.03 does add a 'jabberconference' namespace into mediated invites which has broken our logic
- Dont add a groupchat contact on invitation, always add the inviter to the roster
2017-05-01 15:33:38 +02:00
Philipp Hörist 86e29fb7f4 LegacyArchiving Event does not have a type 2017-04-18 18:58:06 +02:00
Philipp Hörist f8a028b553 Add/Modify Events to handle all MAM namespaces 2017-04-18 17:48:58 +02:00
Emmanuel Gil Peyrot f6739730af Implement chatstate in MUC, as defined in XEP-0085 §5.5. 2017-04-14 16:58:04 +01:00
Philipp Hörist a51ea32dc6 Refactor exception handling for logger
- Handle exceptions inside write() instead of propagating the
    exception
- Add error message to exception
- Add dispatch() method in logger
2017-04-12 22:30:55 +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 5cc92efcb6 Drop messages from invalid JIDs silently 2017-03-27 20:35:14 +02: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 2fbadc91e9 Use Enum or IntEnum instead of range() constants. 2017-02-11 02:40:07 +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 39216af2de print_conversation_line() refactoring
It now orders all messages with the given timestamp
this also includes inserting messages at the correct
point

The timestamp precision for incoming and outgoing messages
was raised to include fractions of a second
2017-01-02 19:09:06 +01:00
Yann Leboulanger 25fb8c9a3a don't crash when we get a wrong feature negotiation form 2016-11-24 22:42:33 +01:00
lovetox f961e0be9a Add MAM Preference Dialog 2016-10-31 02:11:46 +01:00
lovetox 705206cf83 Fix syntax error 2016-10-17 02:44:58 +02:00
Yann Leboulanger c841c7973d prevent traceback when a wrong timezone arrive. 2016-10-16 22:40:41 +02:00
lovetox 0e6f7908c9 Support old print_status tag in Bookmarks 2016-10-10 20:54:15 +02:00
lovetox 4c482cbfe8 Store optional fields correctly in Bookmarks 2016-10-10 19:10:18 +02:00
tmolitor efa8bb6598 Some more points to add the additional_data property 2016-09-05 16:12:23 +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
tmolitor 065d08cebf Honor profile given on commandline for plugin dir and history db and more.
Also added new property 'additional_data' to message event objects. Changes to this attribute (a dict) are passed on from event to event and are also written to the history db as json string (reading of those values isn't implemented yet).
2016-09-05 00:01:29 +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 7afbe5706e Cleaner version of the mam message timestamp fix. Fixes #8277 2016-04-19 23:43:01 +02:00
tmolitor eba838bdac Use the timestamp of the forwarded message in mam processing if possible. Fixes #8277 2016-04-18 01:59:20 +02:00
Yann Leboulanger b75c1c12aa call str() instead of unicode() 2016-04-03 14:28:27 +02:00
Yann Leboulanger 902c3d59c6 better timestamp handling. Fixes #3818 2016-03-31 22:46:44 +02:00
tmolitor 06599440e3 Ignore presence errors 2016-03-25 00:29:20 +01:00
Yann Leboulanger f405228041 make last message correction work for carbon copied messages sent from another resource. Fixes #8276 2016-03-05 14:22:56 +01:00
Yann Leboulanger fbdb7656af rename msg_id to msg_log_id where it's the id from logs database 2016-02-27 19:52:46 +01:00
tmolitor 8bfc286d8f added automatic_message flag to GcMessageOutgoingEvent (bugfix) 2016-02-21 16:45:31 +01:00
Yann Leboulanger 7a4161c759 ignore wrong stanza. Fixes #8205 2016-02-20 21:28:34 +01:00
Yann Leboulanger 766bb508e3 [gdr_gdr] Add a file transfer completed event. Fixes # 8266 2016-02-20 21:36:24 +01:00
Yann Leboulanger 1316866265 reply to message receipt only when we are the recipient of the message. see #7548.
[tmolitor] display message receipt (xep 0184) for carbon copied messages. Fixes #8258
2016-02-20 20:04:47 +01:00
Yann Leboulanger 580cdb2723 fix computing hashes for duplicate messages. See #8258 2016-02-20 15:59:01 +01:00
tmolitor c5c1e5d235 Ignore received message duplicates using sender jid, message id and message content. See #8258 2016-02-08 23:08:26 +01: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 fc56f501bb re-enable metacontacts. Fixes #7295 2016-01-03 16:02:27 +01:00
Yann Leboulanger b8ef7fd854 Ignore roster pushes that are not from our JID or our server. Ignore badly farmated roster pushes. 2015-12-20 20:42:38 +01:00
Yann Leboulanger 11970eb705 do not traceback when we receive a corboned message sent without a to attribute. Fixes #8194 2015-11-24 21:07:59 +01:00
Yann Leboulanger 6337606c49 add new option to allow popup notifications when a chat control is opened. See #7891, #8158 2015-10-25 15:06:37 +01: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 476aca3ea0 decode PGP messages in MAM response. Fixes #8103 2015-09-19 13:58:28 +02:00