Commit Graph

199 Commits

Author SHA1 Message Date
Richard Ramos 3c7779305b feat: move stickers business logic to status-go 2022-03-09 12:16:42 -04:00
Jonathan Rainville 68a4498d11 feat(privacy): reimplement show only contact pfp using status-go setting
Fixes #4900
2022-03-08 15:50:15 -05:00
Jonathan Rainville be9d2f94e2 feat: enable emojis as channel icons
Fixes #4809
2022-03-08 15:15:25 -05:00
Jonathan Rainville e5e6914947 refactor(ChatColumnView): put ChatContentViews in Loaders
This makes the initial loading of the app faster as well as reducing the memory usage until the user clicks on a channel
2022-03-08 13:40:36 -05:00
Jonathan Rainville a99c66ca8b refactor(ChatColumnView): move duplicated code to function 2022-03-08 13:40:36 -05:00
Jonathan Rainville 35e50d186b fix(drag-zone): make drag zone only work in correct chats
Fixes #4904

Moves drag zone to the AppMain so that we can check if the current chat accepts the images
Also disables the Input Connection if the channel is not active
2022-03-03 13:01:53 -05:00
Jonathan Rainville 6fa74b7ba9 refactor: re-hook disconnected and re-connected signals and banner 2022-03-02 09:27:45 -05:00
Sale Djenic 40d10b0cbb fix(@dekstop/chat): timestamp for `Fetch messages` is wrong
Fixes #4850
2022-02-25 12:11:26 -05:00
Jonathan Rainville 6c5594b576 fix(community): fix community edits not always working
Fixes #4842
2022-02-24 16:54:05 -05:00
Jonathan Rainville 3985272037 fix(invitation): fix community invite not showing in 1-1 chats
Fixes #4851
2022-02-24 10:58:26 -05:00
Sale Djenic 52fb195b39 fix(@dekstop/chat): trying to unblock a contact by hitting 'Unblock' via the chat view does not do anything
Fixes #4835
2022-02-24 16:19:51 +01:00
Richard Ramos d4f8b63292 feat: add status.test fleet 2022-02-23 15:48:06 -05:00
Sale Djenic c855de98b6 fix(@dekstop/chat): higher cpu usage after opening gif selector
Fixes #4829
2022-02-23 15:43:21 -05:00
Sale Djenic 6186bf9c8c fix(@desktop/general): app/os notifications
Fixes #4409
2022-02-21 22:01:19 +01:00
Boris Melnik 7bfec141eb fix(groups): Fix members count
Closes: #4822
2022-02-21 10:48:40 +03:00
Richard Ramos fc24f16525 fix: continue showing loading indicator when store fetching failed
Fixes #4733
2022-02-17 14:53:39 -04:00
Boris Melnik ea5b5716e5 refactoring(groups): Refactor groups popups
Closes: #4719 #4615
2022-02-17 21:04:29 +03:00
Khushboo Mehta 52e96e904b fix(@desktop/chat): enable transactions over chat
fixes #4610
2022-02-15 21:22:21 +01:00
Jonathan Rainville 16e7d16c8c feat(communities): re-implement community link unfurling
Fixes #4788
2022-02-14 17:03:41 -05:00
Patryk Osmaczko ba7a6d5d34 style: remove trailing whitespaces 2022-02-09 11:16:23 +01:00
Richard Ramos e252a7a17f fix: reorderCommunityChat parameters 2022-02-08 14:26:07 -04:00
Richard Ramos 3fd10e7915 fix: community chat positions 2022-02-08 14:26:07 -04:00
Sale Djenic aa6036b78b fix(@desktop/chat): mention suggestion list fixed 2022-02-08 12:33:45 -05:00
Richard Ramos f67ffde12c refactor(communities): edit categories 2022-02-07 18:29:13 -04:00
Richard Ramos c338bdf6ae refactor(communities): delete categories 2022-02-07 18:29:13 -04:00
Sale Djenic 841f1704b7 fix(@desktop/chat): add a blocked bar for blocked user profile
- blocked bar is added for profile popup
- blocked bar is added for a chat

Fixes #4673
2022-02-06 16:41:30 +01:00
Anthony Laibe b164b088f5 refactor(@activity_center): Add switch to section/chat
fixes #4474
2022-02-03 16:40:13 -05:00
Sale Djenic aeed9303cd fix(@desktop/communities): community import has some issues
Fixes #4206
2022-02-03 16:14:15 +01:00
Jonathan Rainville b6c78396f8 chore(community): remove pinned messages button in
Fixes #4617
2022-02-02 09:40:21 -05:00
Khushboo Mehta 6f5fcd8623 fix(@desktop/chat): context menu is gone for pictures
fixes #4609
2022-02-01 11:19:56 -05:00
Jonathan Rainville 08c01d2775 fix(community): hook edit community channel
Fixes #4539
2022-02-01 10:55:01 -05:00
Boris Melnik f3485446c3 fix(groups): Add popup to view group ccontext menu action
Closes: #4616
2022-02-01 11:51:31 +01:00
Richard Ramos 192a0c4d19 refactor(communities): create channel in specific category 2022-02-01 11:51:22 +01:00
Noelia 50fb0dc45f fix(@desktop/CopyToClipboard): [base_bc] can't copy from Invite friends as well as App Version and Node Version
Root store propagation in order to use the global copyToClipboard method.

Modify InviteFriendsPopup to use StatusQ components.

Fixes #4529
2022-02-01 11:51:00 +01:00
Richard Ramos ba863acd4e fix: code review 2022-02-01 11:51:00 +01:00
Sale Djenic a05a821f51 issues adding category fixed
- chats list maintained in the chat service gets updated form the right places now
- redundant mapping `Chat` to `ChatDto` is removed, since we already get all
necessary data for the chat, no need for additional mapping which may just
introduce new inconsistencies
- `findIndexById` proc updated so in case if there is no the chat we're searching
for in the list, we're returning `-1` instead of last index in the list
- `DelegateChoice` on the qml side updated to match new type value `Constants.chatType.category`
2022-02-01 11:51:00 +01:00
Richard Ramos b67e97a05c feat(communities): create categories 2022-02-01 11:51:00 +01:00
Boris Melnik 0065f5cae5 refactor: create categories (WIP) 2022-02-01 11:50:51 +01:00
Sale Djenic 0a9aad7b03 fix(@desktop/app-search): loading messages improvements 2022-02-01 11:50:50 +01:00
Sale Djenic 25f7544b41 fix(@desktop/app-search): [base_bc] can't jump to a message from search results
- broken "jump to a section/chat/message" feature fixed
- added loading indicator while searching is in progress
- animation when we point to the searched message is in place again

Fixes #4577
2022-02-01 11:50:50 +01:00
Noelia d8a7a3d812 fix(desktop/chat): [base_bc] selecting a channel does not auto-focus on the text input field
When new channel/chat is displayed, text input field focus is forced properly.

Fixes #4524
2022-02-01 11:50:50 +01:00
Anthony Laibe 16225a3af9 fix(@chat): display link urls 2022-02-01 11:50:40 +01:00
Jonathan Rainville 25ac0fbb68 fix(image-modal): fix having to click multiple times to close the image
Fixes #4586
2022-02-01 11:50:33 +01:00
Khushboo Mehta 7c06f9c362 fix(@desktop/chat): send message is not working from context menu
fixes #4531
2022-02-01 11:50:32 +01:00
Jonathan Rainville 47fa644703 fix(communities): fix icon, members and color + set observed and active
Fixes #4569
Fixes #4567
2022-02-01 11:50:18 +01:00
Anthony Laibe a8f2a3cb08 fix(@chat): react to on left chat
fixes #4528
2022-02-01 11:50:17 +01:00
Richard Ramos fb35f89336 fix: loading indicator 2022-02-01 11:50:17 +01:00
Anthony Laibe f4ed7f09cd fix(@chat): fix anchors of empty chat 2022-02-01 11:50:17 +01:00
Anthony Laibe 5bf9b587da perf(@chat): Do not re-render messages when switching chat 2022-02-01 11:50:17 +01:00
Jonathan Rainville bd2bb8952a refactor(community): move community specific functions to chat_section
Fixes #4489
2022-02-01 11:50:02 +01:00
Jonathan Rainville e1deafa76b refactor(community): move membership functions to chat_section
Fixes #4473 and #4485
2022-02-01 11:50:01 +01:00
Jonathan Rainville 3e339ea094 refactor(community): add admin member request feature
Fixes #4442
2022-02-01 11:50:01 +01:00
Boris Melnik 1cd83b4d17 refactor(groups): Move groups to new architecture
Closes: #4223
2022-02-01 11:49:52 +01:00
Khushboo Mehta 2ff5ce7fc2 fix(@desktop/community): added option to delete community channel
fixes #4415
2022-02-01 11:49:47 +01:00
Jonathan Rainville 3477e4c33e hotfix(act-center): fix wrong signal name 2022-02-01 11:49:47 +01:00
Jonathan Rainville 349cf4f0ef fix(chat): fix 1-1 chat delete and profile top bar click
Fixes #4483 and #4484
2022-02-01 11:49:47 +01:00
Alexandra Betouni a0b40590ab fix:activity center view is empty
Updated all available message properties
from the new backend

Closes #4408
2022-02-01 11:49:47 +01:00
Jonathan Rainville 6f8f9b6f76 fix(community): fix qml errors when creating a community
Fixes #4440
2022-02-01 11:49:47 +01:00
Jonathan Rainville d073dd215a fix(chat): fix copy and download image
Fixes #4494
2022-02-01 11:49:47 +01:00
Patryk Osmaczko 75abaabb5d fix(@desktop/chat): show popup when image is clicked 2022-02-01 11:49:47 +01:00
Khushboo Mehta f68d967544 fix(@desktop/chat): making edit work on base_bc
fixes #4410
2022-02-01 11:49:44 +01:00
Jonathan Rainville a027ec98f8 refactor(community): add member list model and hook it + updates to comm 2022-02-01 11:49:34 +01:00
Patryk Osmaczko c016d264b9 fix: restore community private key field content in dialog
Fixes: #4414
2022-02-01 11:49:14 +01:00
Sale Djenic 9938ea672d refactor(@desktop/chat): username is misplaced when sending messages in the channel
A reason why this issue was happening is that prev and next message
were set in a wrong way. An important thing is that list of messages is set
in descending order in terms of `timestamp` of a message, that means a
message with the most recent time is added at index 0.

That further means that getting an index of the previous message from the
current one is defined as `currentIndex + 1` and getting an index of the next
one is defined as `currentIndex - 1`.

Fixes #4417
2022-02-01 11:49:14 +01:00
Jonathan Rainville 565211f38f fix(chat): fix sticker button not showing + stickers not showing in chat
Fixes #4407
2022-02-01 11:49:14 +01:00
Khushboo Mehta e757c07c96 fix(@desktop/chat): delete message not working
fixes #4411
2022-02-01 11:49:11 +01:00
Boris Melnik 35568d1d6b fix(Replies): Fix reply button
Closes: #4396
2022-02-01 11:49:04 +01:00
Sale Djenic f0ca1a4cc3 refactor(@desktop/general): many errors from the log are fixed
- various issues on app start in console
- various issues when logging out in console
- `node_section` module delete method error
- SyntaxError: JSON.parse: Parse error from the MessageStore
2022-02-01 11:49:04 +01:00
Jonathan Rainville 9fc9f698d9 refactor(community): hook invite user and fix community context menu 2022-02-01 11:48:43 +01:00
Sale Djenic 96e50a97ac refactor(@desktop/chat-community): `ChatContextMenuView` and `MessageContextMenuView` updated
Within this commit apart of `ChatContextMenuView` and `MessageContextMenuView`
some other things are fixed:
- pinned messages model (`asyncFetchChatMessagesTask`), which was corrupted most
likely by resolving conflicts
- `pinned by` part of the pinned messages
- set/remove local nickname for a contact
- contacts in a message list and pinned by name, contact in a pinned message list
and pinned by name, one to one chat details and chat tool bar are updated in a way
that they are responsive to the contact's updates
- pinned messages updated received from remote (from the `status-go`) is handled

Fixes #4366
2022-02-01 11:48:25 +01:00
Jonathan Rainville 6fe9652b44 fix(chat): fix loading chats when joining them
Fixes #4367
2022-02-01 11:48:25 +01:00
Jonathan Rainville 3678b3af9b refactor(community): hook edit community feature 2022-02-01 11:48:22 +01:00
Jonathan Rainville 42bb0c842d refactor(Communities): refactor communities front-end 2022-02-01 11:48:13 +01:00
Sale Djenic e220599612 refactor(@desktop/general): necessary changes applied due to refactored `Contacts` sub-section of the `Settings` section 2022-02-01 11:47:46 +01:00
Sale Djenic da6fe00528 refactor(@desktop/settings-contacts): contacts section updated 2022-02-01 11:47:46 +01:00
Alexandra Betouni 69517588cf refactor: move editChannelPopup to ChatContextMenuView 2022-02-01 11:47:46 +01:00
Sale Djenic 9a82370df0 refactor(@desktop/settings-profile): profile section updated 2022-02-01 11:47:24 +01:00
Jonathan Rainville 9016999ec2 refactor(chat): hook chat commands to qml and fix ens resolve 2022-02-01 11:46:40 +01:00
Sale Djenic 16a33f8fa7 refactor(@desktop/chat-messages): load more messages
- load more messages on scroll up for chat/channel added
- sending messages improved in terms of adding new messages to
appropriate position
- scroll to message added on the qml side
- qml connected to the sending message success/failed signals
2022-02-01 11:46:39 +01:00
Alexandra Betouni 0eb40287fa refactor: removed dynamic scoping from shared module
Properties and functions moved to Global:
- toastMessage
- openProfilePopup()
- getProfileImage()
- popupOpened

Closes #4248
2022-02-01 11:46:39 +01:00
Jonathan Rainville 710236f51a refactor(chat): refactor send messages to work 2022-02-01 11:46:36 +01:00
Sale Djenic 807039ad61 refactor(@desktop/chat-community): `ChatContextMenuView` component updated
- admin flag exposed to qml for chat/channel
- `CreateChannelPopup` updated
- `createPopup` function added to the `Global` singleton
- `PinnedMessagesPopup` component moved to `AppMain` and shared
among components beneath
2022-02-01 11:46:24 +01:00
Sale Djenic 179b0f5a36 refactor(@desktop/chat-messages): add/remove reactions 2022-02-01 11:46:11 +01:00
Sale Djenic df5a5a627d refactor(@desktop/chat-messages): pin/unpin messages and pinned messages list updated 2022-02-01 11:45:50 +01:00
Sale Djenic b6b6d6b6c7 refactor(@desktop/chat-messages): `MessageContextMenuView` component updated 2022-02-01 11:45:50 +01:00
Jonathan Rainville 42504ad4eb fix(chat): fix contact banner showing wrongly 2022-02-01 11:45:50 +01:00
Sale Djenic 6e1438d241 refactor(@desktop/general): `globalUtils` instance added (changed old `utilsModel`) 2022-02-01 11:44:56 +01:00
Jonathan Rainville 0388688e9e refactor(community): add join community functionnality 2022-02-01 11:44:38 +01:00
Jonathan Rainville 129266497d refactor(communities): add communities module to show comm list 2022-02-01 11:43:40 +01:00
Jonathan Rainville 45fddc55ba refactor(act-center): refactor activity center to the new arch 2022-02-01 11:42:55 +01:00
Sale Djenic b3f8af8e06 refactor(@desktop/general): qml code referring to the old code base commented out
Qml code referring to the old code base commented out, but not deleted,
due to easier refactoring the rest of the app.
2022-02-01 11:42:42 +01:00
Sale Djenic bfaf1b5250 refactor(@desktop/chat-communities): `ChannelIdentifierView` component updated 2022-02-01 11:41:56 +01:00
Sale Djenic 7f40ae0f57 refactor(@desktop/chat-communities): unused component removed
- `NormalMessageView` component is removed since we work with `CompactMessageView`
and it's the only and default message component in the app.
- `useCompactMode` property removed from local settings since it's not in use as
well and corresponding code is updated accordingly
2022-02-01 11:41:38 +01:00
Anthony Laibe 6c76974985 refactor(@chat): clear chat history 2022-02-01 11:41:26 +01:00
Anthony Laibe 8ddda242d8 refactor(@chat): mark messages as read 2022-02-01 11:41:26 +01:00
Sale Djenic e5a414a927 refactor(@desktop/chat-communities): qml part handles messages from refactored backend
- `chatType` added to `Constants` to group chat type related values
- `messageContentType` added to `Constants` to group message content type related
values
- `MessageStore` maintained per message list now
- added new `ChatContentView` component used to display chat/channel content
- components updated to display messages from the new backend
- `StatusChatToolBar` appropriately updated
- mute/unmute feature added to chat/channel list as well as to `StatusChatToolBar`
2022-02-01 11:41:22 +01:00
Jonathan Rainville a9c968b984 refactor(chat): refactor 1-1 chat to new architecture
Fixes #4225
2022-02-01 11:39:08 +01:00
Alexandra Betouni f0b39ce4f6 Refactor: Moved openPopup function to Global
The openPopup function was declared in AppMain
and used via dynamic scoping in many places in the
application. Moved function to Global component
and updated all places to call it via Global instead.

Closes #4267
2022-02-01 11:38:46 +01:00
Alexandra Betouni 336f90a60f feat(desktop/wallet) Removed dynamic scoping from wallet
Removed all dynamic scoping parts in wallet section plus

- Renamed Config to Global and added more functions there
- Moved changeAppSectionBySectionType function to Global
  and updated all places where is used to call it from
  Global instead
- Moved openLink function to Global and updated all places
  where is used to call it from Global instead
- Moved errorSound to Global, introduced playErrorSound
  function  and updated all places where is used to call
  this function from Global instead

Closes #4245
2022-02-01 11:38:27 +01:00
Sale Djenic f138fecdd2 refactor(online-users): adding online users for chat/channel 2022-02-01 11:38:07 +01:00