Commit Graph

296 Commits

Author SHA1 Message Date
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
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
Alexandra Betouni 001bc42942 refactor: fix setting user online/offline status 2022-02-01 11:46:11 +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
Sale Djenic 6e1438d241 refactor(@desktop/general): `globalUtils` instance added (changed old `utilsModel`) 2022-02-01 11:44:56 +01:00
Khushboo Mehta 1977420db2 refactor: remove dynamic scoping from profile module
closes #4247
2022-02-01 11:43:27 +01:00
Pascal Precht 27f8c33dbd fix: ensure app sections work correctly
We've recently removed timeline related code from the application.
It seems that either a) new changes have been introduced related to timeline
despite it being removed from the application, or b) a few more changes
where left out as part of the new architecture.

This causes the app to misbehave when selecting sections in the application
nav bar.

This commit fixes this by removing leftover timeline related code.
2022-02-01 11:42:46 +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
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
Jonathan Rainville d8a90eda6c fix(stickers): fix stickers appearing as loading when on a new account 2022-02-01 11:37:32 +01:00
Sale Djenic 80fcb95245 refactor(chat-section): new chat/community model applied on the qml side
Changes done on the backend side related to the new chat/channel/categories model
are applied here. Necessary changes done on the `statusq` may be seen in PR-486.

Parts of the code which are not refactored yet are commented out.

Displayed chats/categories/channels since now are using refactored backend.
2022-02-01 11:37:32 +01:00
Sale Djenic c8b429388f refactor(user-profile): `name`, `icon` and `isIdenticon` properties added to global instance `userProfile`
Apart of all properties we have, now we have 3 new added props which will be used
almost always when we need the following details about logged in user:
- `name` - this will return an ens name in a pretty form or an alias if ens name
was not set (verified). Apart of this there are still `username` and `ensName`
properties for fetching them when it's needed.
- `icon` - this will return a thumbnail image if it's set, otherwise it will
return identicon. Apart of this there are still `identicon` and `thumbnailImage`
properties for fetching them when it's needed.
- `isIdenticon` - this will return `false` if a thumbnail image is set, otherwise
it will return `true`
2022-02-01 11:37:29 +01:00
Jonathan Rainville 22595f5032 refactor(chat): move stickers to the new architecture
Fixes #4060
2022-02-01 11:36:59 +01:00
Jonathan Rainville 3f12796b45 Revert "refactor(chat): move stickers to the new architecture"
This reverts commit 47aa079e0d.
2022-02-01 11:36:59 +01:00
Jonathan Rainville 792397987c refactor(chat): move stickers to the new architecture
Fixes #4060
2022-02-01 11:36:44 +01:00
Khushboo Mehta 1e30872a96 fix(@desktop/profile): Confirmation of contact added not shown on Add Contact Modal
fixes #4072
2022-02-01 11:35:24 +01:00
Sale Djenic 3f50ab26b8 refactor(general): qml cleaning
- Selecting `currentIndex` based on the children placed in the `StackLayout`
component with id `appView` is sorted out since we were referring to the wrong
indexes there in case of walletv2, node and community sections.
- Places which call `Utils.getAppSectionIndex` are updated since we don't have
that method any more.
- Some parts which are not refactored yet are commented.
2022-02-01 11:33:06 +01:00
Sale Djenic 6e3b065d34 refactor(@desktop/general): app sections handled within main module 2022-02-01 11:32:28 +01:00
Sale Djenic 9e567b8fdc refactor(@desktop/general): qml updated according to the new `userProfile` instance 2022-02-01 11:27:25 +01:00
Richard Ramos d713c6fe9f fix: display loading indicator depending on mailserver request status 2022-01-25 13:59:41 -04:00
Patryk Osmaczko 7ca3766def fix(@desktop/settings): ensure new password is confirmed
The task status-im/StatusQ#393 should remove code duplication from here.

Fixes: #4375
Fixes: #4376
2022-01-17 13:09:15 +01:00
Alexandra Betouni 6eff051504 fix: The text entry box shouldn't highlight invalid @mentions
The text input in chat was highlighting whatever was starting
with @. Fixed to highlight only valid user mentions.

Closes #3542
2022-01-13 17:23:59 +02:00
Khushboo Mehta 35388b0f6d fix(@desktop/wallet): Fix for - Recipient of the transaction message is not notified that transaction is completed
Also fixes broken UI when sending/receveing transactions from chat

fixes #2915
2022-01-11 20:59:17 +01:00
Anthony Laibe a911e4f512 fix(@onboarding): Add more height to the textarea
fixes #4364
2022-01-11 10:02:48 +01:00
Khushboo Mehta 619d0e56ac fix(@desktop/wallet): browser tab, can't click send button
fixes #4351
2022-01-05 16:30:17 +01:00
Alexandra Betouni 6d0d00a50a fix: Cannot download uploaded or embed images in private chat
Download an image to a local folder was not working as
clickMessage function was called from root. and root has
no such function. Switched to use clickMessage via dynamic
scoping.

TODO: remove dynamic scoping

Closes #4143
2022-01-04 16:53:47 +02:00
Richard Ramos a85ee8581a feat: show real sync date in "Fetch more messages" button 2022-01-03 21:12:28 +00:00
Khushboo Mehta a7753e27a7 fix(@desktop/chat): Messages do have wrong indentation (alignment) when being sent in a row
Providing temp fix as this compoentn  will be redesigned and moved to StatusQ

fixes #4211
2021-12-14 17:11:09 +01:00
Pascal Precht b57bb21e13 fix(StatusChatInput): ensure anchors of textfield are set correctly
This broke when we removed timeline support. Most likely because `profileImage`
is undefined, the entire expression fails, leaving `anchors.left` `undefined`,
causing the text area to be slammed to the right.
2021-12-07 10:45:16 +01:00
Pascal Precht 23cd46e831 fix: ensure app tab buuttons match correct app section
Since the timeline was removed, this introduced a little hiccup in
the application section selection.

This commit ensures navigation tab buttons match the correct section.
2021-12-06 13:21:31 +01:00
Alexandra Betouni 5e88a9a91b refactor(desktop): Removed all timeline related code
Removed all timeline associated code from base_bc.
This feature is deprecated and shall be removed

Closes #4064
2021-12-03 19:55:45 +02:00
Alexandra Betouni 2039748072 fix(desktop/chat): stickers pack popup not opened
Fixed can't open a sticker pack when clicking a
sticker in a chat.

Closes #4203
2021-12-02 16:45:53 +02:00
Anthony Laibe 690c978ea2 fix(@desktop/chat): unfurl multiple link
fixes #4192
2021-12-02 15:39:22 +01:00
Alexandra Betouni 23cb5136f1 fix(desktop/chat): Fixed finish editing msg when pressing enter
When in message editing mode was not possible to cofirm edit and
close edit mode when pressing enter key as the clicked signal
of the StatusButton is called without an argument, aparently that
signal has a var mouse parameter. Passed null as parameter to
get the signal emitted.

Closes #4213
2021-12-02 16:32:57 +02:00
Alexandra Betouni b4b28d2f98 feat(desktop/contacts) Improvements in contacts
Contacts updates currently in base_bc

Closes #4100
2021-12-01 20:51:06 +02:00
Jonathan Rainville 4cfc1de6a8 fix(chat): fix nickname not populated when clicking profile head in menu 2021-12-01 13:04:22 -05:00
Jonathan Rainville 4d7d2261aa fix(reply): fix reply image displaying the current user
Fixes #4185
2021-11-29 09:32:08 -05:00
Khushboo Mehta 30d1866ee6 fix(@desktop/chat): Blocking a user with big messages leaves an empty space in the chat
fixes #4123
2021-11-29 10:14:47 +01:00
Alexandra Betouni af887af4df fix(desktop/chat) fetch more messages not working
Fetch more messages is spinning indefinitely when
fetch more messages button is clicked and messages
are never displayed

Closes #4168
2021-11-25 10:10:09 -05:00
Jonathan Rainville 66840da455 fix(LinkMessages): fix various problems with link messages not showing
Fixes #4131
2021-11-25 11:38:08 +01:00
Sale Djenic 484748314f fix(general): online/offline selector updated
Fixes: #4049
2021-11-24 13:15:15 +01:00
Alexandra Betouni c0450f0580 refactoring (desktop/chat) Message component
Moved Message component & dependencies  to shared
for usage import shared.views.chat 1.0 and accordingly
import shared.controls/panels.chat 1.0

Closes #3927
2021-11-24 13:15:15 +01:00