Daniel Gultsch
63206e6d4a
use type=chat more often to go along with new, simple carbon and mam rules
...
* change chat states to type=chat and chat markers to type=chat
* use same type as requesting stanza for delivery receipts (which should make them type=chat most of the time)
2015-07-22 14:15:00 +02:00
Daniel Gultsch
f6281a182d
fixed npe in error message handling
2015-07-21 19:44:25 +02:00
Daniel Gultsch
87bc9d3a31
end otr session when receiving failed otr message warnings
2015-07-21 11:52:49 +02:00
Daniel Gultsch
f74ee765a2
bugfix: changed condition of onOtrSessionEstablished being called
...
fixed #1263
fixed #1260
fixed #1293
2015-07-21 11:46:56 +02:00
Andreas Straub
012f036840
Optimize imports
2015-07-20 14:26:29 +02:00
Andreas Straub
d173913eba
Overhauled Message tagging
...
Messages are now tagged with the IdentityKey fingerprint of the
originating session. IdentityKeys have one of three trust states:
undecided (default), trusted, and untrusted/not yet trusted.
2015-07-19 22:17:58 +02:00
Andreas Straub
3458f5bb91
Clean up logging
...
Add a fixed prefix to axolotl-related log messages, set log levels
sensibly.
2015-07-19 22:17:57 +02:00
Andreas Straub
968410ae33
Fix devicelist update handling
...
No longer store own device ID (so that we don't encrypt messages for
ourselves), verify that own device ID is present in update list
(otherwise republish), reflect update in UI.
2015-07-19 21:32:27 +02:00
Andreas Straub
ec6870307e
Properly track message sender
...
Previously, the sender was assumed to be the conversation counterpart.
This broke carboned own-device messages. We now track the sender
properly, and also set the status (sent by one of the own devices vs
received from the counterpart) accordingly.
2015-07-19 21:32:27 +02:00
Andreas Straub
3815d4efa3
Fetch bundles on-demand, encrypt in background
...
Bundles are now fetched on demand when a session needs to be
established. This should lessen the chance of changes to the bundles
occuring before they're used, as well as lessen the load of fetching
bundles.
Also, the message encryption is now done in a background thread, as this
can be somewhat costly if many sessions are present. This is probably
not going to be an issue in real use, but it's good practice anyway.
2015-07-19 21:32:26 +02:00
Andreas Straub
299bbdf27f
Reformat code to use tabs
...
This really sucks to do it like this. Sorry. :(
2015-07-19 21:32:26 +02:00
Andreas Straub
77619b55e4
Added PEP and message protocol layers
...
Can now fetch/retrieve from PEP, as well as encode/decode messages
2015-07-19 21:32:26 +02:00
Daniel Gultsch
78aff1329f
renamed HttpConnection to HttpDownloadConnection
2015-07-10 15:14:13 +02:00
Daniel Gultsch
a2525346f4
moved null check for to and from in message parser
2015-07-02 18:02:32 +02:00
Daniel Gultsch
c20a088ea8
changed mime type handling
2015-07-01 16:01:18 +02:00
Daniel Gultsch
d7de311379
refactored bodyContainsDownloadable to be more flexible
2015-06-30 13:52:53 +02:00
Daniel Gultsch
0d01e51da5
don't parse body from muc status messages
2015-06-28 22:14:40 +02:00
Daniel Gultsch
46595b6d43
fixed parsing of muc status messages in new message parser
2015-06-28 20:11:28 +02:00
Daniel Gultsch
6b794eca2c
send_received muc messages will mark a conversation a read
2015-06-04 02:47:24 +02:00
Daniel Gultsch
fe1cff016f
avoid unnessary muc mam queries when message count is 0 after subject
2015-06-02 13:33:20 +02:00
Daniel Gultsch
8ac933be9f
fixed more edge cases in muc message parser
2015-06-02 12:21:35 +02:00
Daniel Gultsch
df86b0fc47
improved compatibility with muc components that change the message id
2015-06-02 06:23:32 +02:00
Daniel Gultsch
402e5363d1
deduplicate private muc messages
2015-05-26 12:00:55 +02:00
Daniel Gultsch
201bc158bd
proper error parsing. some clean up
2015-05-20 03:48:14 +02:00
Daniel Gultsch
9658146575
fixed npe in new message parser
2015-05-20 03:48:14 +02:00
Daniel Gultsch
1b5631c835
fixed muc mam. added a few security checks
2015-05-20 03:48:14 +02:00
Daniel Gultsch
eeebebe32a
fixed read/unread markers
2015-05-20 03:48:14 +02:00
Daniel Gultsch
b731995a51
added mam stuff to new message parser
2015-05-20 03:48:14 +02:00
Daniel Gultsch
d261feda74
rewrote parser code. mam id and possible other stuff still missing. also massivly untested
2015-05-20 03:48:14 +02:00
Daniel Gultsch
5136bf9832
r/o support for vcard avatars. pep avatars will be prefered
2015-05-05 06:17:34 +02:00
Daniel Gultsch
3a627f72fb
fixed direct invites
2015-04-21 18:36:11 +02:00
iNPUTmice
c47d1e83c1
properly set chat states when receiving otr status messages
2015-03-21 16:43:03 +01:00
iNPUTmice
99b2ef7e9d
respond to unreadable OTR messages with error message. fixed #1021
2015-03-21 16:07:17 +01:00
iNPUTmice
442ae12ee5
don't update presence for muc messages
2015-03-19 19:40:24 +01:00
BrianBlade
1c600fefcf
# add delivery receipts for private muc msgs
...
# enable update last-seen for muc-msgs
2015-03-18 21:49:41 +01:00
iNPUTmice
44028a547f
fixed npe in message parser
2015-03-06 21:14:55 +01:00
Daniel Gultsch
ff86fa6049
mark all sent messages up to a marker as displayed
2015-03-01 14:15:40 +01:00
iNPUTmice
7ee5e95959
added typing notifications through XEP-0085. fixed #210
2015-02-21 11:06:52 +01:00
iNPUTmice
f8b662e7f8
muc tics for consistency
2015-01-26 01:25:47 +01:00
iNPUTmice
94086bb9b7
don't put ejabberds status code muc messages into an actual conversation
2015-01-26 00:26:16 +01:00
Michael
7800647885
otr: switch to the otr-state the partner alternate.
...
should also fixed #877
2015-01-25 13:07:31 +01:00
Michael
8041d23cb1
MessageParser: fix the regex for otr query messages.
2015-01-24 16:19:58 +01:00
iNPUTmice
b9af38464e
fixed mam to work with muc
2015-01-24 00:22:51 +01:00
Daniel Gultsch
ef6e4c5dd5
do not check image file size over http if accepted file size is 0
2015-01-11 22:18:18 +01:00
Daniel Gultsch
8d655f445a
more muc options
...
* show invite button only with admin privileges or on public conferences
* Offer to ban user in public conferences.
Thanks to @betheg for the awesome ground work for this
2015-01-07 18:34:24 +01:00
Daniel Gultsch
0ad8796b44
fixed invites
2015-01-07 16:45:44 +01:00
Daniel Gultsch
5c190487bc
deal with prosodys muc namespace tagging of messages
2015-01-04 12:37:22 +01:00
Daniel Gultsch
bcd3be59ce
put Conversations into background mode earlier
2015-01-02 12:04:33 +01:00
iNPUTmice
3f6638cb64
properly count mam messages
2014-12-17 06:59:58 +01:00
iNPUTmice
e2f50ab855
go through mam history page by page. load mam dynamically on scroll
2014-12-15 23:06:29 +01:00