Commit graph

48 commits

Author SHA1 Message Date
Absturztaube 8065afc4d7 resolve merge conflicts 2020-11-08 14:04:17 +01:00
eugenijm 15ea9d8c91 Fix the chat scroll behavior for vertical screens.
Fetch the messages until the scrollbar becomes visible, so that the user
always has the ability to scroll up and load new messages.
2020-11-06 11:11:19 +03:00
Henry Jameson b6a8ca44ef added comment 2020-11-02 21:08:22 +02:00
Henry Jameson bdf2f36f11 fix chat heading not being aligned and using wrong styles 2020-11-02 21:03:55 +02:00
eugenijm e798e9a417 Optimistic message sending for chat 2020-11-01 23:36:58 +03:00
Shpuld Shpuldson 3ead79ddb4 document thie this. check 2020-10-29 12:45:44 +02:00
Absturztaube a43623c5a5 Merge branch 'develop' into fedi-absturztau-be 2020-10-29 09:24:25 +01:00
Shpuld Shpuldson 6acb61f296 fix conflict, keep the touchable button big 2020-10-29 08:55:54 +02:00
Shpuld Shpuldson 2c441c7922 fix back button size, fix missing chat notifications being marked as read too eagerly, fix promiseinterval erroring when not getting a promise 2020-10-27 10:03:04 +02:00
Henry Jameson f561e75553 lint 2020-10-21 00:31:16 +03:00
Henry Jameson b19c2eb0fb More stuff. Buttons in user card's corner now have MUCH bigger hitboxes 2020-10-20 22:13:19 +03:00
Henry Jameson e8650d3409 chevrons-downs, settings 2020-10-20 21:03:46 +03:00
Absturztaube 7a9bd70a09 Merge branch 'develop' into fedi-absturztau-be 2020-10-07 18:51:14 +02:00
Shpuld Shpludson 6bd38c7d6f Merge branch 'fix/wait-for-request-before-starting-interval' into 'develop'
Fix/wait for request before starting interval - fix #937

Closes #937

See merge request pleroma/pleroma-fe!1222
2020-10-01 13:20:14 +00:00
eugenijm 8c4514013d Fix chat messages being missed when the streaming is disabled and the messages are sent by both participants simultaneously 2020-09-16 09:21:24 +03:00
Shpuld Shpuldson 3fb35e8123 rename to promiseInterval 2020-09-04 11:19:53 +03:00
Shpuld Shpuldson 1b6eee0497 change chats to use custom makeFetcher 2020-09-02 21:01:31 +03:00
Absturztaube 7fa2dfecc6 Merge branch 'direct-conversations' of https://git.pleroma.social/eugenijm/pleroma-fe into direct-conversations 2020-07-08 19:16:44 +02:00
eugenijm 3b2dfcaf5c Add the single-line prop to StatusContent and use it for chat list items 2020-07-08 15:21:31 +03:00
eugenijm 45901c8da6 Disable status preview in the chat posting form 2020-07-08 15:21:31 +03:00
eugenijm f05f832bff Address feedback
Use more specific css rules for the emoji dimensions in the chat list status preview.

Use more round em value for chat list item height.
Add global html overflow and height for smoother chat navigation in
the desktop Safari.

Use offsetHeight instad of a computed style when setting the window height on resize.

Remove margin-bottom from the last message to avoid occasional layout shift in the desktop Safari

Use break-word to prevent chat message text overflow

Resize and scroll the textarea when inserting a new line on ctrl+enter

Remove fade transition on route change

Ensure proper border radius at the bottom of the chat, remove unused border-radius

Prevent the chat header "jumping" on the avatar load.
2020-07-08 15:21:31 +03:00
eugenijm aa2cf51c05 Add Chats 2020-07-08 15:21:31 +03:00
eugenijm f2b3d1e6b0 Use streaming for real time updates instead of notifications, disable
polling when streaming is enabled.
2020-05-30 17:59:35 +03:00
eugenijm 6c2c0883ce Use since_id when pulling the current chat messages 2020-05-30 13:47:48 +03:00
eugenijm fdef990c6a Submit on enter, start a new line on shift+enter 2020-05-29 09:43:52 +03:00
eugenijm c82436cd8a WIP Chat refactoring 2020-05-29 09:43:52 +03:00
eugenijm 93049e9d52 WIP preserve scroll position during posting form resize, attachment upload, window resize, disable auto-focus for mobile 2020-05-29 09:43:52 +03:00
eugenijm 5f7494f134 Chat header alignment fixes for the mobile layout 2020-05-29 09:43:52 +03:00
eugenijm c1faeacee8 Set file limit in the chat posting form 2020-05-29 09:43:52 +03:00
eugenijm 6b272b9c99 WIP chat improvements 2020-05-29 09:43:52 +03:00
eugenijm 09da927def WIP chat refactoring 2020-05-29 09:43:52 +03:00
eugenijm 99de78b80e WIP chat 2020-05-29 09:43:52 +03:00
eugenijm d2456d5fea Chat message deletion 2020-05-29 09:43:52 +03:00
eugenijm d48b7a7d58 WIP chat 2020-05-29 09:43:52 +03:00
eugenijm 5fdb5c554d WIP load chat messages on scroll up 2020-05-29 09:43:52 +03:00
eugenijm 86cc4ce08d WIP attachments 2020-05-29 09:43:52 +03:00
eugenijm 0f3c667eb8 wip 2020-05-29 09:43:52 +03:00
eugenijm bd5b3e8922 wip 2020-05-29 09:43:52 +03:00
eugenijm aa1f2a1c3f wip 2020-05-29 09:43:52 +03:00
eugenijm 5e93ca3edb WIP chat avatars 2020-05-29 09:43:52 +03:00
eugenijm 804cf3abc5 WIP: Chats 2020-05-29 09:43:52 +03:00
Roger Braun 92289e545a Move chat to sidebar. 2018-01-26 15:11:34 +01:00
eal ecb8acb155 Some css fixes.
Scale chat panel size to viewport height, fit message field to width.
2017-12-07 19:03:26 +02:00
Roger Braun 6c4e3a509a Don't display if we don't have a chat. 2017-12-05 14:20:34 +01:00
Roger Braun a03b92e252 Post on submit, not on enter. 2017-12-05 12:09:54 +01:00
Roger Braun 6ad27959a6 Linting. 2017-12-05 11:49:40 +01:00
Roger Braun 27be1e0fa3 Move chat to own module. 2017-12-05 11:47:10 +01:00
Roger Braun 0e51fac2b2 Add missing component code. 2017-12-05 11:02:41 +01:00