Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | small fixes | Christian Schneppe | 2020-02-17 | 2 | -2/+20 |
| | |||||
* | optimize imports | Christian Schneppe | 2020-01-31 | 1 | -2/+0 |
| | |||||
* | migrate to AndroidX | Christian Schneppe | 2019-09-20 | 1 | -3/+1 |
| | |||||
* | when parsing omemo messages ensure we only find one element | Christian Schneppe | 2019-09-12 | 1 | -0/+13 |
| | |||||
* | inherit language from parent message when finding localized body | Christian Schneppe | 2019-09-12 | 1 | -1/+3 |
| | |||||
* | show language in message bubble if multiple language variants were received | Christian Schneppe | 2019-09-12 | 2 | -25/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XML and by inheritence XMPP has the feature of transmitting multiple language variants for the same content. This can be really useful if, for example, you are talking to an automated system. A chat bot could greet you in your own language. On the wire this will usually look like this: ```xml <message to="you"> <body>Good morning</body> <body xml:lang="de">Guten Morgen</body> </message> ``` However receiving such a message in a group chat can be very confusing and potentially dangerous if the sender puts conflicting information in there and different people get shown different strings. Disabling support for localization entirely isn’t an ideal solution as on principle it is still a good feature; and other clients might still show a localization even if Conversations would always show the default language. So instead we now show the displayed language in a corner of the message bubble if more than one translation has been received. If multiple languages are received we will attempt to find one in the language the operating system is set to. If no such translation can be found it will attempt to display the English string. If English can not be found either (for example a message that only has ru and fr on a phone that is set to de) it will display what ever language came first. Furthermore we will discard (not show at all) messages with with multiple bodies of the same language. (This is considered an invalid message) The language tag will not be shown if we receive a single body in a language not understood by the user. (For example operating system set to 'de' and message received with one body in 'ru' will just display that body as usual.) As a guide line to the user: If you are reading a message where it is important that this message is not interpreted differently by different people (like a vote (+1 / -1) in a chat room) make sure it has *no* language tag. | ||||
* | use helper method to close socket | Christian Schneppe | 2019-07-17 | 1 | -2/+8 |
| | |||||
* | explicitly start service (instead of just bind) service from contact chooser | Christian Schneppe | 2019-01-25 | 1 | -3/+4 |
| | |||||
* | fixed sni and alpn for kitkat | Christian Schneppe | 2018-10-01 | 1 | -1/+1 |
| | |||||
* | fall back to random subject langugae in case there is no english one | Christian Schneppe | 2018-07-15 | 1 | -3/+6 |
| | |||||
* | reset subject and name on empty | Christian Schneppe | 2018-07-09 | 1 | -0/+5 |
| | |||||
* | convert empty resources in messages to bare jid | Christian Schneppe | 2018-05-02 | 1 | -1/+2 |
| | |||||
* | return InvalidJid object instead of null if Jid can not be parsed | Christian Schneppe | 2018-05-02 | 1 | -1/+2 |
| | |||||
* | fixed rare crash on jolla devices | Christian Schneppe | 2018-04-07 | 1 | -4/+1 |
| | |||||
* | migrate to xmpp-addr | Christian Schneppe | 2018-04-02 | 1 | -4/+3 |
| | |||||
* | use translated version of subject if available | Christian Schneppe | 2018-04-01 | 1 | -0/+26 |
| | |||||
* | remove wakelocks in XmlReader | Christian Schneppe | 2018-01-21 | 1 | -21/+1 |
| | |||||
* | use countdownlatch to check if TagWriter has finished | Christian Schneppe | 2018-01-21 | 1 | -4/+13 |
| | |||||
* | fixed interupt handling | Christian Schneppe | 2018-01-21 | 1 | -1/+3 |
| | |||||
* | do not check if namespace equals prefix for attributes | Christian Schneppe | 2017-05-31 | 1 | -1/+1 |
| | |||||
* | deal with namespace attributes | Christian Schneppe | 2017-05-31 | 1 | -3/+9 |
| | |||||
* | make sure tag writer thread shuts down | Christian Schneppe | 2017-04-26 | 1 | -8/+7 |
| | |||||
* | synchronize modifications of output stream in tag writer | Christian Schneppe | 2017-02-22 | 1 | -4/+4 |
| | |||||
* | only force close tagwriter before creating a new one | Christian Schneppe | 2017-02-14 | 1 | -0/+4 |
| | |||||
* | make sure to properly stop tagwriter | Christian Schneppe | 2017-01-25 | 2 | -1/+8 |
| | |||||
* | reformat code | Christian Schneppe | 2016-11-19 | 4 | -449/+449 |
| | |||||
* | catch all throwables when parsing xml | Daniel Gultsch | 2016-08-11 | 1 | -2/+2 |
| | |||||
* | changed package id inside manifest and project | Christian Schneppe | 2016-07-29 | 4 | -0/+522 |