Commit graph

734 commits

Author SHA1 Message Date
Julian Sparber
f7c15f4be7 roomhistory: remove loading spinner form room history 2018-09-25 16:07:39 +02:00
Julian Sparber
09608c7daf roomhistory: lazy load all stored room messages
Since the messages are lazy loaded, we can load all cached messages
when a room gets opened
2018-09-25 16:07:39 +02:00
Julian Sparber
b3d17f8d24 roomhistory: add custom widget for message history
The new widget for the history keeps track of the the messages in the
list, therefore it can update a message and how a message is displayed
It also adds lacy loading of a new message batch or cached messages (not
yet in use)
2018-09-25 16:07:39 +02:00
Julian Sparber
f7beaefb07 room: remove outdated code and cleanup
This removes outdated code to simplify the codebase, it makes it easier
to read.
2018-09-25 14:44:43 +02:00
Julian Sparber
976ed8d945 backend: remove outdated code for search
This removes outdated code, which was used to make search requests to
the server.
2018-09-25 12:15:19 +02:00
Julian Sparber
899071ed7b backend: get previous message with get messages api
This replaces the get_context API call with the correct API to get older messages.
2018-09-24 18:32:07 +02:00
Julian Sparber
5b1989480b store: make sure that since value is never empty
this fixes initial sync fail because since is a empty string
2018-09-24 16:31:07 +02:00
Daniel Garcia Moreno
845ddb4ab0 Merge branch 'since' into 'master'
Continue sync when reopeing fractal (makes first sync much faster)

See merge request World/fractal!232
2018-09-24 07:51:06 +00:00
Daniel García Moreno
4075ab9b63 Remove non needed to_string() for slice string 2018-09-24 09:45:20 +02:00
Daniel Garcia Moreno
151edb8ff4 Merge branch 'utf8-selection' into 'master'
Fixed incorrect string slicing that would screw up UTF-8 strings

Closes #335

See merge request World/fractal!234
2018-09-24 07:03:23 +00:00
Alexandre Franke
483fd7968a Fix indentation 2018-09-23 13:00:50 +00:00
Rasmus Rendal
03ea93287b Fixed incorrect string slicing that would screw up UTF-8 strings 2018-09-23 14:01:52 +02:00
Rasmus Rendal
e0a91b06ce Changed the name to small-font, to make it a bit more general 2018-09-23 10:57:01 +02:00
Rasmus Rendal
4772e6f001 Made the text small again 2018-09-23 10:52:22 +02:00
Rasmus Rendal
a6109e7f58 Use dim-label instead of another CSS class 2018-09-23 10:43:17 +02:00
Rasmus Rendal
03e4da2e3f Added a label to the members list which shows MXID's 2018-09-22 21:42:44 +02:00
Julian Sparber
9319222e83 backend: restart sync from where fractal was closed
this speeds up the first sync when opening fractal, it stores the
next_batch value from the last sync fractal made before closing, this
way the sync can start from this point.
2018-09-22 18:23:27 +02:00
Jordan Petridis
9d713ac701
Globals: Avoid duplication
Remove a bunch of stuff from build.rs and cleanup
the globals.rs module.
2018-09-22 17:25:58 +03:00
Julian Sparber
80a3551da9 messages: store if a message row has a header 2018-09-22 02:31:08 +02:00
Julian Sparber
509355b433 messages: pass values to MessageBox instead of references 2018-09-22 01:47:57 +02:00
Julian Sparber
e70c671235 messages: add update methode to message widget
- Add the functionality to update a row, for it allowes only to update
  the header
- clean up some duplicated code
2018-09-22 01:47:54 +02:00
Eisha Chen-yen-su
786cd981b7 fractal-gtk: Cleanup code for hiding Delete button
This simplifies the code for hiding the messages "Delete" button as
there were a lot of things added to pass the power level as an argument
to show_menu_popover().
2018-09-20 11:25:21 +02:00
Daniel García Moreno
25f4cb948a reqwests update to 0.9.0 2018-09-20 09:24:37 +02:00
Daniel García Moreno
5e02dd1fe1 Merge branch 'merge-requests/219' 2018-09-20 08:55:15 +02:00
Daniel García Moreno
45977c3533 Update all dependencies 2018-09-18 10:53:15 +02:00
Mario Blättermann
2a4cd3b3eb Update German translation 2018-09-16 18:39:37 +00:00
Piotr Drąg
9497d947e3 Update POTFILES.in 2018-09-14 18:46:48 +02:00
Daniel Garcia Moreno
65f938be33 Merge branch 'wip/exalm/headerbar-css' into 'master'
app.css: Apply devel headerbar colors more selectively

See merge request World/fractal!224
2018-09-14 06:49:11 +00:00
Daniel Garcia Moreno
52553220d2 Merge branch 'alatiera/remove-gspell' into 'master'
Remove gspell

Closes #333

See merge request World/fractal!225
2018-09-14 06:48:23 +00:00
Marek Černocký
d35f885317 Update Czech translation 2018-09-14 00:51:36 +00:00
Jordan Petridis
c41484a86c
Remove gspell
Gspell hasn't been used since we switched to a source view for the
message entry. We should not keep it in the tree if its not used
and nobody is currenty working on wiring it up again.

Close #333
2018-09-13 22:11:53 +03:00
Alexander Mikhaylenko
230a2bc267 app.css: Apply devel headerbar colors more selectively
Prevents label color leaking onto buttons.
2018-09-13 21:21:23 +05:00
Rafael Fontenelle
1ee2e8acea Update Brazilian Portuguese translation 2018-09-11 00:06:31 +00:00
Eisha Chen-yen-su
123abac9e9 MessageMenu: Hide delete button when useless
This hides the delete button when the user doesn't have the right to
do so.
2018-09-10 11:11:56 +02:00
Eisha Chen-yen-su
5baaf0b5e2 UI: Add an ID to the message menu separator
We need it to be able to hide it from the source code.
2018-09-09 20:58:35 +02:00
Anders Jonsson
be475ccb6b Update Swedish translation 2018-09-09 18:21:25 +00:00
Daniel Garcia Moreno
76d9a604c7 Merge branch 'small-MR-history' into 'master'
Message widget refactor and adds uitype for messages

See merge request World/fractal!220
2018-09-09 16:54:51 +00:00
Piotr Drąg
f3adc927d4 Update Polish translation 2018-09-09 16:53:50 +00:00
Eisha Chen-yen-su
c41c0ec547 MessageMenu: Connect the buttons for images
This connects the buttons "Open With...", "Save Image As..." and "Copy
Image" with their appropriate actions.

See https://gitlab.gnome.org/World/fractal/issues/76
2018-09-08 17:36:28 +02:00
Eisha Chen-yen-su
10589715ea MessageMenu: Show appropriate buttons for images
See https://gitlab.gnome.org/World/fractal/issues/76
2018-09-08 17:33:46 +02:00
Eisha Chen-yen-su
94672e0a47 UI: Add buttons for images in context menu
See https://gitlab.gnome.org/World/fractal/issues/76
2018-09-08 17:30:27 +02:00
Rafael Fontenelle
7091b5fd76 Update Brazilian Portuguese translation 2018-09-08 02:47:05 +00:00
Julian Sparber
8be5abe75c roomhistory: download the username when needed for emotes
this fixes emotes showing only the MXID instate of the username
2018-09-07 17:55:15 +02:00
Julian Sparber
9a8410c2df roomhistory: expose image widget in message
connect the click callback to the image where the message widget is
created
2018-09-07 17:53:57 +02:00
Julian Sparber
7d0ab1d3ae roomhistory: new msg type and refactor msg widget
This adds a new file called uitypes which contains a new struct which
holds all information needed to display a message in the message
history.
Also AppOp is removed from the message widget and the widget was
refactored to use the new uitype
2018-09-07 17:40:37 +02:00
Daniel Garcia Moreno
2e5c033635 Merge branch 'headers' into 'master'
Headerbar cleanups

See merge request World/fractal!218
2018-09-05 16:13:29 +00:00
Alexander Mikhaylenko
52b9c64876 msg_src_window.ui: Clean up headerbar
Use 'title' property instead of a manually added label.
2018-09-05 19:19:33 +05:00
Alexander Mikhaylenko
f65a4e3f42 invite_user.ui: Clean up headerbar
Use 'title' property for title, and pack buttons into the headerbar itself.
2018-09-05 19:19:33 +05:00
Alexander Mikhaylenko
a75144b2b7 main_window.ui: Clean up login headerbar
Use 'title' property instead of adding the label manually.
2018-09-05 19:19:33 +05:00
Alexander Mikhaylenko
1f3022bb0a main_window.ui: Refine 'Log in' label
Set font weight to ultralight, also replace hardcoded grey color with
default 'dim-label' style class.
2018-09-05 18:42:41 +05:00