Commit graph

974 commits

Author SHA1 Message Date
Marvin W 638d81d67e More cleanup and database modifications 2018-06-26 15:42:02 +01:00
Samuel Hand 2a8352c543 Database migration and code cleanup 2018-06-19 11:26:31 +01:00
Samuel Hand df8b5fcb72 Properly handle the case where the recipients device list hasn't been fetched 2018-06-14 23:12:25 +02:00
fiaxh babe987dcb Don't handle error message stanzas as normal messages 2018-06-14 23:12:25 +02:00
Samuel Hand 0bcdae34a5 Disable debug mode for the omemo plugin 2018-06-11 08:48:55 +01:00
Samuel Hand 40c6835600 Add trust management utilities to the omemo plugin 2018-06-11 07:11:22 +01:00
Samuel Hand 630df3a2ee Properly handle the case where the recipients device list hasn't been fetched 2018-06-08 02:37:50 +01:00
Samuel Hand 52e116ee44 remove bundle requests so session creation doesn't fail 2018-06-03 22:57:51 +02:00
Samuel Hand bbe578343e remove bundle requests so session creation doesn't fail 2018-06-03 17:53:05 +01:00
Jordi Mallach 60982bff67 Update Catalan translation. 2018-05-28 16:22:01 +02:00
Samuel Hand 62e5e6485e Implement XEP-0380 for the OMEMO and OpenPGP plugins (#359)
* Implement XEP-0380 in a naive fashion for both the OMEMO and OpenPGP plugins

* Move the XEP-0380 namespace to a constant

* Move the implementation for xep-0380 to its own module

* Remove un-needed lines from plugins/openpgp/src/stream_module.vala
2018-05-28 16:19:51 +02:00
fiaxh 5425243203 Fix empty display names, fix update contact roster name 2018-05-10 22:17:19 +02:00
fiaxh e852a0a60b Move chat input to .ui file, fix smiley conversion on enter 2018-05-10 22:17:19 +02:00
Translations 4067e45779 Update translations
Arabic: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Basque: Aitor Beriain <beriain@bitmessage.ch>
Chinese (Simplified): 朱陈锬 <201603748@stu.lzjtu.edu.cn>
Esperanto: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Finnish: mjlapin <muu@kapsi.fi>
Flemish: Nathan Follens <nathan@email.is>
French: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Italian: Valerio Baldisserotto <svalo@libersoft.it>
Japanese: Mako N <mako@pasero.net>
Luxembourgish: Dennis Fink <dennis.fink@c3l.lu>
Norwegian Bokmål: Allan Nordhøy <epost@anotheragency.no>
Romanian: Licaon Kter <licaon.kter@protonmail.com>
Spanish: mgueji <miguejim@mailbox.org>
2018-05-01 00:24:57 +02:00
fiaxh c1533f2577 Redesign chat input + move file upload there 2018-04-30 11:03:59 +02:00
Michael Vetter f0dd0e0c3a Rename 'start chat' into 'start conversation' 2018-04-30 10:45:35 +02:00
Mathieu Bridon 0d5735d22e Add an appdata file
This allows "app center" applications like GNOME Software and Plasma
Discover to show Dino in all its glory, so users can install it simply.
2018-04-29 14:30:00 +02:00
fiaxh e80da80602 Add image preview to file choosers
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
2018-04-19 15:41:47 +02:00
fiaxh 6f27c3e58f openpgp: Fix invalid iter in key selection dialog
On empty pgp keyring the key selection dialog would display a label "No Keys available"
which subsequently while selecting different accounts would disappear.

Co-authored-by: Gnoxter <gnoxter+github@linuxlounge.net>
2018-04-17 22:14:18 +02:00
fiaxh c656c7e9c2 small fixes 2018-04-17 22:13:05 +02:00
Marvin W 105006c5f1
Merge pull request #220 from bochecha/pkgconfig
Find libraries with pkgconfig
2018-03-28 12:25:28 -06:00
Mathieu Bridon 06c4a8ffd6 Find libraries with pkgconfig
This is necessary for Flatpak, because Yocto messes with the
/usr/bin/*-config files, and really wants everyone to use pkgconfig.

A fallback is kept to build on platforms which don't have pkgconfig for
those libraries.
2018-03-28 15:52:42 +02:00
bobufa fefa28c4ef Prefill nick with local alias when joining a non-bookmarked MUC
fixes #223
2018-03-27 15:04:33 -06:00
Translations 7ecb0e614b Update translations 2018-03-24 15:33:17 -06:00
Thibaut Girka c712e6ed4a Do not mark messages as read if they are only marked as received 2018-03-22 09:31:23 -06:00
fiaxh 4ccdc1d092 Small connection fixes 2018-03-10 20:01:22 +01:00
fiaxh c6ff25cc7a Only assume UUID to be unique for one counterpart+account when deduplicating 2018-03-10 20:01:22 +01:00
fiaxh c8f68678be Recognize own MUC messages from other device 2018-03-10 20:01:22 +01:00
fiaxh 81310dff2e Handle multiple chat state notifications per bare jid
fixes #117
2018-03-10 20:01:22 +01:00
fiaxh 0968da1ff7 Only notify on last MAM message, only if not read
fixes #293
2018-03-06 21:55:31 +01:00
fiaxh a8ee61b34c Move notification sounds (canberra dependency) into plugin, introduce libdino/NotificationEvents 2018-03-05 15:43:02 +01:00
Rahix 08c8b9c6d6 Implement notification sounds
Add a new setting to toggle notification sounds on or off. Plays the
systems default instant messaging message sound (message-new-instant)
whenever a notification is shown if toggled on.
2018-02-17 21:51:02 +01:00
fiaxh 5436d716c0 Use correct host name for TLS when using xmpps 2018-02-11 10:57:43 -06:00
linkmauve 845f98c1d4 Add forgotten strings to translations (#282) 2018-02-02 02:42:20 +01:00
fiaxh ef40b61734 Small fixes 2018-01-30 17:29:54 +01:00
fiaxh 8c46c423c0 http-files: Report correct file size for encrypted files (slot request) 2018-01-28 23:26:37 +01:00
fiaxh 78de584ad0 Make slack workarounds use in-pipeline 2018-01-28 22:27:50 +01:00
fiaxh f6db249c92 Only display transferred images, display file names, open in system viewer, include and use pgp embedded file names 2018-01-28 22:00:22 +01:00
fiaxh bec810e234 Visually highlight mentions in MUCs
fixes #267
2018-01-28 20:32:54 +01:00
fiaxh 57c72d2818 Pipeline for incoming messages in libdino 2018-01-28 13:37:53 +01:00
Marvin W ca331e85ef Render avatar on demand 2018-01-28 00:38:47 +01:00
Marvin W 03a349bfaf Small fixes to MucManager 2018-01-28 00:38:47 +01:00
Marvin W bbfac91155 Fix certain Slack specific issues (using host-based workarounds) 2018-01-28 00:38:47 +01:00
Marvin W 782ae4c049 Move Jid class to xmpp-vala, partially refactor namespace 2018-01-28 00:38:47 +01:00
Translations d46d071e57 Update translations 2018-01-24 17:37:17 +01:00
Jordi Mallach 7f256e1005 Initial Catalan translation. (#279)
* Initial Catalan translation.

* Add OMEMO and OpenPGP plugin translations.
2018-01-24 16:34:37 +01:00
linkmauve 0ce28c0b0d Fix typos in comments and variable names (#269)
Thanks `codespell`!
2018-01-10 15:12:54 +01:00
Mathieu Bridon 5557c03be8 Move to GNetworkMonitor (#236)
* Move to GNetworkMonitor

Dino currently talks to NetworkManager over DBus to know the state of
the network.

That doesn't work in a Flatpak sandbox by default though, because
Flatpak filters DBus communications and only allows a very small set of
things to pass (which are known to be safe).

Gio provides an API to know the state of the network (and be notified of
changes via a signal): GNetworkMonitor.

And GNetworkMonitor works both inside a Flatpak sandbox, and in
traditional builds. (in Flatpak it uses what we call a "portal", which
are the clean, safe way to let apps exit their sandbox)

Fixes #235

* Don't check for network connectivity for now

The connectivity check really is the correct thing to do:

* network_available means that the computer has network routes to
  "somewhere". That is, it is connected to a router.
* connectivity.FULL means that the computer can access "the
  Internet". That is, if it is behind a router, that router is
  connected.

As a result, only checking for network_available is not correct.

Unfortunately, NetworkManager tends to wait a long time before checking
for connectivity. As a result, it is possible that a transient network
error leaves NetworkManager thinking that network_available is true but
connectivity!=FULL, and it will wait several minutes before realizing
that the Internet connexion did come back.

During that time, apps checking for connectivity (e.g the whole GNOME
desktop) will think they don't have access to the Internet, while apps
that don't (e.g Firefox) will access the Internet just fine. Users are
understandably confused when that happens.

Removing the check for connectivity is an acceptable trade-off in the
short-term, until this situation is improved on the NetworkManager side.

https://bugzilla.gnome.org/show_bug.cgi?id=792240
2018-01-09 20:39:45 +01:00
David Plassmann 5d6cf9d8d5 Add support for setting a new Affiliation in a muc (#266)
* Added support for setting a new Affiliation in a muc

* small changes

* fix parameter order
2018-01-09 01:06:32 +01:00
fiaxh 2e041e2984 Tab completion: Case insensitive, handle spaces 2018-01-06 14:02:32 +01:00