Commit graph

60 commits

Author SHA1 Message Date
Daniel García Moreno
ed632140d3 Release 3.30.0 2018-09-04 09:43:06 +02:00
Daniel García Moreno
6170d0e0d5 New release 3.29.92
New features:

 * Use markup for room details
 * Direct chat and invite to user id
 * Redesign file messages
 * Improve notification title format
 * Room Topic: Remove the button, use only labels
 * MessageMenu: Copy selected text action to menu
 * Native file chooser for attachments

Fixes:
 * Don't override m.direct on direct room creation

New and improved translations and a lot of code fixes
2018-08-30 09:03:39 +02:00
Daniel García Moreno
92e897e09d i18n: functions with context for translations 2018-08-17 20:07:39 +02:00
Daniel García Moreno
ced28384f2 Remove unicode segmentation, not needed 2018-08-07 14:17:29 +02:00
Daniel García Moreno
8d2ed11379 New release 3.29.6
Changelog:

 * Add German translation
 * Message right click menu with: view source, reply, copy text and
   delete
 * Styles for quotes in messages
 * Initial sync speed up
2018-08-03 10:57:02 +02:00
Daniel García Moreno
d093f03bfc message.rs: Use itertools to group quotes lines
I've tried to simplify the code that group lines by quote/no-quote, it's
a lot simpler using the itertools crate.

This patch also adds a new enum for the message part, instead of use a
simple bool, so we can manage other kind of rendering in a message. I
was thinking about the Markdown code block for example.
2018-07-29 19:57:40 +02:00
Daniel García Moreno
54933a903a New release 3.29.5
* Fix multiline behaviour
 * Update spanish translations
2018-07-27 12:46:51 +02:00
Daniel García Moreno
c68fa2d651 New release 3.29.4
New features:
 * New audio player widget for audio files
 * MediaViewer now loads more images from the server
 * MediaViewer with headerbar in full screen
 * New avatar async loading and defaults
 * New room settings view
 * Multiline entry with markdown syntax highlighting
2018-07-23 19:10:23 +02:00
Daniel García Moreno
0bc7474eda Update rust deps 2018-07-23 18:53:42 +02:00
Eisha Chen-yen-su
1207d0af8e Fix merge conflicts issues 2018-07-23 17:25:24 +02:00
Eisha Chen-yen-su
f49f6be6cc fractal-gtk: Use msg_entry as a GtkSourceView
This modifies `msg_entry` to be a GtkSourceView in order to support
multiline message input. Messages are still sent by simply pressing the
enter key but there is also the possibility to insert line returns
within the message with Shift-Enter.

See https://gitlab.gnome.org/World/fractal/issues/154
2018-07-23 17:25:24 +02:00
Julian Sparber
44b2d28337 roomsettings: reload room settings when members are avaible
code clean up
2018-07-17 22:14:23 +02:00
Daniel García Moreno
dacd3683ba Merge branch 'master' into last-viewed-messages 2018-07-10 09:43:30 +02:00
Julian Sparber
8993f5fdfd avatar: refactor avatar loading and caching
* use the same method everywhere to display an avatar
* move code to generate letter avatars to a separate crate
* use the generated avatar as a fallback till the real avatar is
avaibile
* remove gtk dependecies from fractal-matrix-api

Note: The avatar in room details dialog is borken but the dialog will be
replaced soon. Also updating the username in the room history doesn't
work, the room history needs a refactor to resolve some issues.
2018-07-05 18:54:59 +02:00
Jordan Petridis
efb685ac6a AudioPlayer: Wire the labels and slider to the gst_player. 2018-06-26 15:24:50 +00:00
Jordan Petridis
aba59f6197 AudioPlayer: Initial yak shaving, not wired up yet. 2018-06-26 15:24:50 +00:00
Jordan Petridis
b581ae4d01
fractal-gtk: Remove pining of some deps.
This was due to a bug. It has since been fixed and
it's no longer needed.
2018-06-22 16:50:40 +03:00
Daniel García Moreno
7250f95206 New release 3.29.1
New features:

 * Media viewer for images
2018-06-22 09:15:40 +02:00
Daniel García Moreno
ae80f56720 i18n: New module to use gettext with params
We can't use format with dynamic strings so we can't use gettext
response with format. To format translatable strings easily I've created
a new module so we can use like this:

```
    let literal = i18n("TESTINGx gettext");
    let nonamed_params = i18n_f("TESTING! gettext {} and {}", &["one", "two"]);
    let named_params =i18n_k("TESTING2 gettext {one} and {two}",
                             &[("one", "1"),
                               ("two", "two")]);
```
2018-06-18 13:41:09 +02:00
Daniel García Moreno
5c0316cbbd fractal-api renamed to fractal-matrix-api 2018-06-08 15:51:37 +02:00
Daniel García Moreno
72fa9e0919 api: fractal-api ready to publish in crates.io 2018-06-08 14:20:42 +02:00
Alexandre Franke
16e6e80517 passwd: Improve handling of uninstalled schemas 2018-06-07 23:59:08 +02:00
Daniel García Moreno
a4c0907d3c Join split string inside gettext
It seems that gettext doesn't detect correctly strings that are splitted
in several lines with \ so we need to keep that in one line.

Fix #254
2018-06-06 16:45:40 +02:00
Daniel García Moreno
4b45f1c8c2 stickers: Render correctly gif and stickers button hide 2018-05-25 10:16:57 +02:00
Daniel García Moreno
eafbfef28a Custom gettext-rs without gettext tarball inside 2018-05-22 16:46:05 +02:00
Daniel García Moreno
7a26544df0 New release 0.1.30
New features:
 * Translations support
 * Number of members in the room in the members button
 * File storage configuration support
 * Gold and Silver tags for admins and moderatos
2018-05-21 21:06:36 +02:00
Eisha CHEN-YEN-SU
60367530ba Cargo: Add gettext-rs as a dependency
This adds the crate gettext-rs among the dependencies of Fractal
in order to use gettext for i18n.

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Julian Sparber
206035ca1a gspell: add basic spell check
* add gspell as spell checker to fractal, currently only accessible form
the context menu
2018-05-15 14:13:33 +00:00
Daniel García Moreno
84761d4d37 New release 0.1.29
New Features:
 * New default avatars for users
 * Initial sync speed up
 * Highlight own username in mentions using pango attributes
2018-05-14 11:51:56 +02:00
Daniel García Moreno
eed332822a New release 0.1.28
New features:
 * Make "Start chat" buttons insensitive
 * Notify for direct messages

Fixes:
 * Update initial_sync notification message
 * Use Pango for room with no avatars
 * Revert "Don't send markdown in the body when parsed"
 * api: Use md5 as unique message id instead of i32
 * markdown: Remove P tag that wraps the html
2018-04-30 11:39:16 +02:00
Daniel García Moreno
577703fc71 markdown: Remove P tag that wraps the html
The Comrak lib that we're using wraps each parsed markdown with a
`<p>...</p>\n` so we need to remove to avoid the modification of the
real message.

See #210
2018-04-29 21:10:14 +02:00
Christopher Davis
6d51f8ad7a Revert "Don't send markdown in the body when parsed"
This reverts commit 7bfe63ac9c.
2018-04-29 12:16:12 +00:00
Alexandre Franke
8bbc06d793 Use Pango for room with no avatars
Cairo text rendering is really basic and not recommended for use

Fixes #156
2018-04-28 19:14:52 +02:00
Daniel García Moreno
7373582cee New release 0.1.27
New features:
 * show mxid in member tooltip
 * Focus on message entry after clicking on a username
 * Basic markdown sending
 * Change Load more GtkButton to GtkSpinner
 * mention: blue highlight for messages with mentions and cleanup css file
 * Redesigned new room creation (fixes #98)

Fixes:
 * Unlock collections and items in secret storage before use.
 * fix: add joining members to the there own room instate to the active room
 * Fix autocomplete crash with unicode usernames
 * Fix url parsing
2018-04-27 10:09:51 +02:00
Daniel García Moreno
aa5c979f80 Update deps and html2pango
This update will fix #185. The fix is in the html2pango lib, that now
parses links correctly.
2018-04-27 10:04:09 +02:00
Daniel García Moreno
7bfe63ac9c Don't send markdown in the body when parsed
If we parse the markdown syntax and sent that as formatted_body we
shouldn't sent the markdown text in the body, the correct way is to send
a simple text message in the body as a fallback.
2018-04-27 09:14:58 +02:00
Daniel García Moreno
0c8ffc76e9 autocomplete: Code cleanup, remove all unwraps
I've removed all unwraps that can be removed, managing the result of all
of that with the ?  operator and using the std::option::Option type.

This way we'll avoid crashes, because an unmanaged unwrap can cause a
crash so we need to check this always.

I've also removed the unicode-segmentation depencency. We can use the
.chars iterators and it seems to work correctly.
2018-04-27 08:46:19 +02:00
Daniel García Moreno
42a41b0893 update dependencies
* serde: 1.0.42
2018-04-22 11:02:12 +02:00
Daniel García Moreno
2b779a41ff Update deps
Fix #185
2018-04-16 08:27:24 +02:00
Daniel García Moreno
cb7f911c8e New release 0.1.26
New features:
 * Add new description to README, and some other small README improvements
 * new autoscroll with animation
 * Ability to launch multiple Fractal instances using FRACTAL_ID env

Fixes:
 * Escape text in body using the last html2pango
 * center inapp notification
 * Fix request with no timeout
 * Show user id when the displayname isn't present
 * Fix macos compilation problem with notify_rust
 * autocomplete: fix change usernames font color to white when selection ends at the same position as the username
 * Avoid destroy dialog on Esc
2018-04-14 14:06:19 +02:00
Daniel García Moreno
a8ed58d0f5 Escape text in body using the last html2pango 2018-04-14 14:02:11 +02:00
Daniel García Moreno
8534edd27e Update rust dependencies 2018-04-09 21:19:13 +02:00
Daniel García Moreno
4acd63c02f New alpha release 0.1.25 2018-04-09 20:57:56 +02:00
Alexandre Franke
cdaa8cb522 Update html2pango dependency 2018-04-09 15:54:21 +02:00
Daniel García Moreno
d5c0ec3314 New alpha release 0.1.24
Fixs:
 * Fixed crash when entering unicode chars
2018-04-07 14:55:24 +02:00
Daniel García Moreno
7258f0b354 Fix autocompletion crash
See #166
2018-04-07 14:39:50 +02:00
Jordan Petridis
cae57f7068
Remove unused imports. 2018-04-05 20:51:51 +03:00
Jordan Petridis
68f6b36787
Change the git url of the html2pango crate. 2018-04-05 20:48:22 +03:00
Jordan Petridis
0a8d3c6b51 Switch the html_markup implementation to html2pango crate. 2018-04-05 12:48:36 +00:00
Daniel García Moreno
c02e1012f0 Update fractal-gtk version in cargo.lock 2018-03-23 09:00:13 +01:00