Commit graph

71 commits

Author SHA1 Message Date
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
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
Daniel García Moreno
a5d354ad31 Improve avatar async loading
The avatar was not redrawing after image download, I've moved the avatar
loading retry from the drawing method to a separated one to call just
after the backend respond so we don't retry if it's not needed and we
can redraw when the image is ready.

I've also changed the letter-avatar git dependency to use the crates.io
one.

We should improve this async user data loading, this will change in the
near future when we change to the new data model and we can have a good
cache system. Meantime this solution works.
2018-07-10 09:19:01 +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
d1cfc8b633 Update gst crates and add pulseaudio to the flatpak manifest. 2018-06-26 15:24:53 +00: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
Alexandre Franke
16e6e80517 passwd: Improve handling of uninstalled schemas 2018-06-07 23:59:08 +02:00
Daniel García Moreno
d060f47312 Adapt version number to follow gnome release cycle
We want to make Fractal a *real* GNOME app so we need to follow the
gnome version number for releases.

See #253
2018-06-01 00:19:09 +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
861599adc8 remove not needed ammonia dep 2018-04-29 20:06:11 +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
BrainBlasted
e89fa42951 Basic markdown sending with no UI changes 2018-04-19 19:45:55 +00: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
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
Daniel García Moreno
dd6a28b2f4 New alpha release 0.1.23
New features:

 * implement redesin of the autocomplete popover, fix #146
 * divider.rs: Change the margins around the divider
 * divider.rs: Add vertical spaces around the divider

Fixs:

 * Change the git url of the html2pango crate.
 * Switch the html_markup implementation to html2pango crate.
 * Execute glib-compile-resources inside the flatpak env.
2018-04-07 09:35:26 +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
da016b252a New alpha release 0.1.22
New features:

 * center all dialog title on dialog width and refactor glade file
 * reoder options in add room menu, add separator and change some lables
 * limit user name suggests to 5 and allow usage of @ for mention
 * match also uid for mentions
 * use only @ with tab-compleation
 * remove " (IRC)" from the end of suggested username for mentions, fix #126

Fixs:

 * fix the text of some lables
 * fix title of dialog for joining a room by ID
 * fix spacing in user menu popover and in room settings popover
 * Reorder app menu to follow Gnome rules
 * divider: Make the object non-selectable
2018-03-27 14:14:08 +02:00
Daniel García Moreno
cea638ddd5 New alpha release 0.1.21
* Fixed message alignment
2018-03-22 11:34:04 +01:00
Daniel García Moreno
7692d7d563 New alpha release 0.1.20
New features:
 * Join room by id or alias dialog
 * Start chat dialog
 * Image to no room view and add new style
 * "New messages" divider
 * Spawn popover from room name and remove room-menu-button

Bug fixes:
 * Only one line in topic
 * Use custom fork of secret-service that removes AVX2 ASM instructions
 * Only attach url to msg if there's an url
 * Conditional in `mark_as_read`
2018-03-22 10:26:07 +01:00
Daniel García Moreno
97971b7f50 Dependencies update 2018-03-22 10:25:39 +01:00
Daniel García Moreno
1fe7b79b1c New alpha release 0.1.19
New features:
 * make user menu button avatar 24px
 * increase avatar size in the sidebar to 24px
 * api: Increase timeout to 80 seconds
 * Store token with libsecret to use later
 * Fill the login data in login view on init

Bug fixes:
 * set focus for each stack view, fix #118
 * fix alignment for the text when no room is selected
 * Do not send null attrs in json_q
 * fix alignment of no room selected message by splitting the text to two label
 * Fix initial sync filter
2018-03-16 12:47:13 +01:00
Daniel García Moreno
13d0e01be2 New alpha release 0.1.18
New features:
 * New style for emotes
 * Spinner to initial sync notification
 * A line for the last viewed message
 * Split user menu in two menus and remove the title in the left headerbar
 * Show user info in popover
 * Make room avatar in header 24px if no description

Bug fixes:
 * Centered titlebar
 * Remove tooltip when there's not topic
2018-03-12 13:19:49 +01:00
Daniel García Moreno
79fbfdd031 New alpha release 0.1.17
New features:
 * Style improvements in messages history
 * Make the date label more human friendly
 * InApp notification for initial sync

Bug fixes:
 * fix minor visual issue with notify bubbles
2018-03-04 20:00:54 +01:00