1297 Commits

Author SHA1 Message Date
Pascal Precht
bd9fa37ce3 fix(Chat): ensure correct contact username is shown
In some cases inside of 1-on-1 chats, the fake messages added to
the beginning of the message list, wouldn't determine the correct
username of the contact in question.

This commit explicitly calls `chatsModel.userNameOrAlias()` instead
of relying on `activeChannel.name` which tries to do the same.
2021-02-23 10:42:23 -05:00
Pascal Precht
84806ee96c feat(MessageContextMenu): add copy link actions
This commit adds a menu item to the message context menu to
copy links that may exist inside of a message.

There are three possible scenarios:

1. There's no link in the message, which causes the menu to not
render the dedicated menu item at all
2. There's one link in the message, which renders an additional
`Action` with a copy-to-clipboard functionality
3. There are multiple links in a single message. This adds a
nested `PopupMenu` in the existing menu with menu items for each
link extracted from the message

To make this work there were some changes in the `PopupMenu` component
needed, as it wasn't take the sub menu's `enabled` state into account
properly. This makde it always render nested menus even when they
should've been invisible.

Closes: #1733
2021-02-23 08:53:54 -05:00
Richard Ramos
fd8a84eb9d fix: minimize on close 2021-02-23 08:53:37 -05:00
Richard Ramos
b43122d7f3 feat: use stacklayout for chat messages 2021-02-23 08:53:31 -05:00
Jonathan Rainville
ae56a360c4 fix: message height taking into account the image even when hidden 2021-02-22 17:29:06 -05:00
Jonathan Rainville
6eee5da36e fix: fix texts to use secondaryText instead of darkGrey 2021-02-22 09:58:18 -05:00
Richard Ramos
6f11ee972a fix: remove defaultAppSettings completely 2021-02-18 16:40:21 -05:00
Richard Ramos
6207c8af53 fix: appSettings were being overwritten due to defaultAppSettings periodically executing sync() 2021-02-18 16:40:21 -05:00
Jonathan Rainville
eeb1628337 fix: fix binding loop on the fetch button 2021-02-18 16:38:10 -05:00
Jonathan Rainville
fbf592bf52 fix: fix ChannelContextMenu undefined errors 2021-02-18 16:38:10 -05:00
Jonathan Rainville
2a4780f379 fix: fix top bar not showing group chat name 2021-02-18 16:38:10 -05:00
Jonathan Rainville
7dc3bf7e87 fix: fix group info popup warning and don't load popup immediately 2021-02-18 16:38:10 -05:00
Pascal Precht
3d8f7ad463 refactor: Move TimelineLayout into Component 2021-02-18 16:37:42 -05:00
Jonathan Rainville
46412204c5 feat: implement new colors for dark mode 2021-02-18 15:24:12 -05:00
Jonathan Rainville
0e699cac65 chore: run translation scripts 2021-02-18 15:23:58 -05:00
Jonathan Rainville
b277346490 chore: change translations to only translate complete languages 2021-02-18 15:23:58 -05:00
ace-smart
5014513c17 Adjusted compass tab icon size and badge border color. Fixes #1843 2021-02-16 14:48:04 -05:00
Jonathan Rainville
0104962df8 fix: fix App not showing correctly when notification is clicked 2021-02-15 16:22:26 -05:00
Jonathan Rainville
82ede94700 fix: remove notifications from OS tray when app is opened back 2021-02-15 16:22:26 -05:00
Pascal Precht
dd195431a5 chore: improve channel switch perf
Having the Timeline component loaded eagerly made switching
between channels rather slow because it always tries to read
the current message list from the chats model.

This commit changes the layout so that the timeline layout container
is only loaded conditionally when indeed activated.
2021-02-15 16:22:05 -05:00
ace-smart
0f1b46097e Updated truncate long name to use default Elide property. Fixes #1830 2021-02-15 16:05:03 -05:00
ace-smart
29c555bd2d Truncate long 3 words name. Fixes #1830 2021-02-15 16:05:03 -05:00
ace-smart
6494d45b44 Truncate long 3 words name. Fixes #1830 2021-02-15 16:05:03 -05:00
ace-smart
3420593774 Fixed an issue that doesn't update one2one chatview name when unassign nickname from the contact. Fixes #1840 2021-02-15 16:04:31 -05:00
Jonathan Rainville
3fef5c7a69 feat: hide fetch old messages after 30 days 2021-02-12 14:45:43 -05:00
Jonathan Rainville
90e9e2d192 fix: fix top bar menu position 2021-02-12 14:45:09 -05:00
Pascal Precht
6c272dddf6 feat(StatusChatInput): introduce context menu to format message
Closes #1804
2021-02-12 14:44:47 -05:00
ace-smart
aca6d4bd2e Fixed showing wrong ensname on one2one chat profile modal. Fixes #1810 2021-02-12 14:44:37 -05:00
ace-smart
972cf9f138 Fixed the issue doesn't show nickname on profileview in 1:1 chat. Fixes #1826 2021-02-11 10:15:29 -05:00
Iuri Matias
7b5a1660f8 make compact mode the default 2021-02-10 15:48:57 -05:00
Richard Ramos
e8c169aace fix: make the time not selectable 2021-02-10 13:53:09 -05:00
Richard Ramos
0f44178c85 feat: add tooltip with the message timestamp when hovering the chat time 2021-02-10 13:53:09 -05:00
Richard Ramos
b2262c8105 Show chat image and username again after a couple of minutes in chat
Fixes #1764
2021-02-10 13:52:36 -05:00
Pascal Precht
8977ba4931 refactor: redesign PrivateChatPopup to match new designs
This commit introduces the new design and behaviour of the modal
that opens up when starting a new 1-on-1 chat.

Main changes include:

- New search UI/UX functionality of users and ENS resolutions
- Composed view of existing contacts and contacts to be searched
- Ability to add contacts from within the modal

Closes: #1747
2021-02-10 13:39:25 -05:00
ace-smart
0c65551b45 Limited StatusToolTip width for maxWidth. Fixes #1817 2021-02-10 13:37:02 -05:00
ace-smart
9950221159 Adjusted padding and margin of the StatusTooltip component as design. Fixes #1817 2021-02-10 13:37:02 -05:00
ace-smart
849be39ee2 Adjusted confirm button wrong style. Fixes #1811 2021-02-10 13:36:20 -05:00
Richard Ramos
3f525a0b2a fix: hover state on compact messages 2021-02-10 09:52:05 -05:00
Richard Ramos
2ac67f95aa fix: add contact using status ens name 2021-02-08 17:39:10 -05:00
Richard Ramos
4b7769c391 fix: adding padding to suggestion box to avoid having the identicon cut 2021-02-08 17:38:53 -05:00
Richard Ramos
21176f702f fix: remove format on text
Fixes #1771
2021-02-08 17:38:42 -05:00
Pascal Precht
4050a40c8f refactor: introduce LoadingAnimation for reusability 2021-02-08 17:38:25 -05:00
Pascal Precht
e61d91dd51 fix: make sure context menu receives correct channel index
This was missing in one of our previous PRs and causes the
channel context menu to not function properly e.g. when deleting
chats, it currently always deletes the first chat in the channel list
instead of the active channel.
2021-02-08 17:38:17 -05:00
ace-smart
e0a6f48b8e Resolved fixed width issue of profile setting's left panel items. Fixes #1794 2021-02-08 17:37:53 -05:00
Richard Ramos
366ebffbe7 fix: code review 2021-02-08 17:37:44 -05:00
Richard Ramos
d0de5c074f fix: populate suggestion box with all users from the message list
Fixes: #1328
2021-02-08 17:37:44 -05:00
Jonathan Rainville
7da6bd9834 fix: fix channel list disappearing with only one channel 2021-02-08 17:37:36 -05:00
Pascal Precht
5ec3ad88d5 fix(SetCurrencyModal): fix callstack size exceeded error
There's a bug in the `SetCurrencyModal` where it runs into a callstack size
exceeded error because we're calling it's `open()` API to open itself.
That function happens to call itself again and again.

The reason that API was introduced in the first place, was to ensure that
the configured default currency is reflected currectly.

This commit fixes that issue by getting rid off the `open()` and `close()`
APIs which cause the mentioned error, and rely on `openPopup`'s parameters
configuration instead.
2021-02-08 17:37:28 -05:00
Jonathan Rainville
cabc82782c fix: fix emojis on normal mode and replies on compact 2021-02-08 16:48:14 -05:00
Jonathan Rainville
e57fc2afb7 fix: fix appearance container to not have hover state and better height 2021-02-08 16:48:14 -05:00