Commit Graph

1790 Commits

Author SHA1 Message Date
adbenitez d463c226f9 add description to emojis in the emoji selector 2021-04-29 05:01:07 -04:00
Asiel Díaz Benítez c849d8542b Merge branch 'master' into adb-sticker-improvements 2021-04-28 13:04:58 -04:00
adbenitez c01888aa48 open the contact-requests-chat directly if show_emails=all 2021-04-27 16:33:29 -04:00
adbenitez e6006c874b improve quote style when replying with a sticker 2021-04-23 18:01:16 -04:00
B. Petersen 3545fd2693 log getChatMsgs() timing 2021-04-23 21:20:34 +02:00
adbenitez 79abbee12d disable "reply privately" in contact requests chat 2021-04-21 17:54:00 -04:00
B. Petersen 0f9a3dd0de mark limited results as such
by definition, global-message-search truncates the result at 1000 messages,
therefore, if we get 1000 results, that may be a limited result.
2021-04-20 20:46:28 +02:00
B. Petersen 69c9a087aa speedup global search
the speedup is done by the following changes:

- if the query-string is updated while actually performing a search,
  the new search is not directly scheduled as before;
  instead the flag needsAnotherBgSearch is set;
  in the search-thread, the flag is checked
  and another search will be performed

  this way, searches as skipped, but the most recent is always executed

- if there are already chat- or contact-results and
  the query-search has changed meanwhile, search is aborted
  and the partial result is used (next search will be exexuted immediately)

  this way, esp. the expensive searchMsgs() search is executed less often
  on fast typing

- for a one-letter-search, search for messages is always skipped

this is roughly what we are doing on ios since
https://github.com/deltachat/deltachat-ios/pull/1140

moreover, this pr cleans up some things,
putting logic to the same java class.
2021-04-20 11:22:03 +02:00
B. Petersen 870f78ab35 measure timings in global search, order requests 2021-04-20 11:22:03 +02:00
Asiel Díaz Benítez 98f2adc8fa Merge pull request #1886 from deltachat/adb-fix-group-profile-menu
Improve profile menus
2021-04-19 20:05:30 -04:00
adbenitez 6db123e82e allow to share document in Document profile tab 2021-04-19 18:59:37 -04:00
adbenitez 7374982524 add share item in gallery selection menu 2021-04-19 16:53:13 -04:00
adbenitez 5c09cf923d hidde unused menu items in ProfileSettingsFragment 2021-04-19 15:27:26 -04:00
adbenitez 0da8cfa423 make BaseConversationItem.bind() protected 2021-04-19 10:54:39 -04:00
adbenitez b861295517 fix clicks on system messages 2021-04-18 18:58:37 -04:00
Asiel Díaz Benítez 92029b9ede Merge pull request #1881 from deltachat/adb-issue-1880
show system message status while sending and on errors
2021-04-18 14:37:23 -04:00
adbenitez a398b0af62 set delivery icon color to red if message failed 2021-04-18 13:42:06 -04:00
adbenitez 60c821180f fix sticker scaling 2021-04-18 01:05:44 -04:00
adbenitez 6d1418c86c show system message status while sending and on errors 2021-04-17 21:42:14 -04:00
Asiel Díaz Benítez 008f21bd3e Merge pull request #1876 from deltachat/adb-issue-1869
finish action mode on tab switch
2021-04-17 12:53:26 -04:00
adbenitez 471bff5e97 allow to add POI with text of any length 2021-04-17 01:26:14 -04:00
adbenitez d562260906 finish action mode on tab switch 2021-04-16 22:26:12 -04:00
Asiel Díaz Benítez 78aa6733fc Merge pull request #1868 from deltachat/adb-issue-1865
add more options to Gallery and Documents profile tabs
2021-04-16 13:20:12 -04:00
adbenitez c43b133e0c declare MessageSelectorFragment implements DcEventCenter.DcEventDelegate 2021-04-15 12:46:33 -04:00
adbenitez 151f5d354d Merge branch 'adb-issue-1865' of github.com:deltachat/deltachat-android into adb-issue-1865 2021-04-15 12:34:04 -04:00
adbenitez 55837fb9b4 more refactoring, declare abstract setCorrectMenuVisibility() and move getSelectedMessageRecord() to MessageSelectorFragment 2021-04-15 12:33:43 -04:00
Asiel Díaz Benítez 284c91555d Apply suggestions from code review
Co-authored-by: Hocuri <hocuri@gmx.de>
2021-04-15 12:08:11 -04:00
adbenitez 771f75e48f allow videochat invitations in groups 2021-04-15 16:58:03 +02:00
Asiel Díaz Benítez 4b829334f2 Merge pull request #1872 from deltachat/adb-issue-1870
hidde share button in media preview of draft image or avatar
2021-04-15 10:40:30 -04:00
adbenitez 3256cd392a hidde share button in media preview if preview is for draft image or avatar 2021-04-14 23:23:54 -04:00
adbenitez 7313c6d521 make MessageSelectorFragment abstract 2021-04-14 20:02:56 -04:00
adbenitez c7ff727d04 refactoring to reduce code duplication 2021-04-14 19:50:56 -04:00
adbenitez aef48aa7ee rename info_str to infoStr in all the code even not related to this PR but well 2021-04-14 16:09:48 -04:00
adbenitez d55292bba5 follow cyBerta's recommendation 2021-04-14 16:06:57 -04:00
B. Petersen c2de12e1a3 let LocalHelpActivity detect language-region combinations 2021-04-14 16:58:48 +02:00
adbenitez c8efc72424 add details action to menu 2021-04-13 19:57:38 -04:00
adbenitez 7f358b0910 add more options to Gallery and Documents profile tabs 2021-04-13 18:59:23 -04:00
Hocuri ed0796723b Alias support (#1840)
* Adapt to alias support: Always show sender avatar and name on messages if OverrideSenderName is set

See https://github.com/deltachat/deltachat-core-rust/pull/2297

* Rename groupThread to showSender as this variable is not only true in groups anymore
2021-04-12 20:39:12 +02:00
Hocuri fee4e99f51 Let stickers handle clicks 2021-04-11 13:32:40 +02:00
adbenitez c4354a5a1e use mute API directly 2021-04-09 15:30:51 -04:00
B. Petersen 65e3d85c9e show show_emails state in settings summary 2021-04-06 02:05:56 +02:00
B. Petersen 6dac8c4989 remove device message for now, we will add a fresh one for the final release 2021-04-04 21:17:30 +02:00
Hocuri 3ec78953fa Bugfix: open images in the media preview again
Since #1834, images were not opened in the media preview again but
opened with an external app.

This was because since #1834, only slides that return true on
`hasImage()` are shown in the media preview, i.e. gifs, images and
videos.

Now, the problem was that images were shown as DocumentSlides under
some circumstances, which return `false` for `hasImage()` (naturally).
2021-03-16 17:50:12 +01:00
Hocuri 4c0d03772d Better profile and group picture selection by using attachment selector (#1837)
fix #1836

AvatarSelector is mostly copied from AttachmentTypeSelector. I first started to make it a subclass, but there were so many functions that had to be changed that I decided against it (esp. also the constructor, so I would have had to create another constructor to allow AvatarSelector to bypass the "normal" constructor). Could still be done though, of course.

I think (hope joy) that the commits are clear enough that this can be reviewed commit-by-commit. In the first commit, commenting out code means "Moved somewhere else"

I found it easier to look at the first commit using gitk than GitHub as GitHub doesn't show it as copied from AttachmentTypeSelector but as a new file. (of course you can also just review normally, going throug it file-by-file :)

* Don't show remove button if there is no image yet

* Remove unnecessary animation that just made things look worse

* Delete now-unused ClearProfileAvatarActivity

* For groups, also use the attachment-chooser-dialog

* Remove confirmation dialog for removing avatar (The user has to confirm anyway, and this was not correctly translated)
2021-03-16 11:58:44 +01:00
Hocuri ce8ff61a37 Don't open media preview for attachments with file viewtype (#1834)
fix #1816

The problem was:
- as @link2xt already wrote, the onclick listener only checks if the mime type is `image/` or `video/`.
- then `PagingMediaLoader` loads all images and videos of the current chat with `context.getChatMedia(msg.getChatId(), DcMsg.DC_MSG_IMAGE, DcMsg.DC_MSG_GIF, DcMsg.DC_MSG_VIDEO)`. We need _all_ images so that the user can swipe back and forth.
- The correct image to be shown can't be found, the MediaPreview is opened anyway. As the correct image can't be shown, the first image in the chat is shown.
2021-03-14 19:23:51 +01:00
adbenitez 7b6f1bd507 add lock recording feature 2021-03-14 15:28:23 +01:00
Hocuri c1b4e57b9e Don't open media preview for attachments with file viewtype
fix #1816
2021-03-14 14:48:05 +01:00
Hocuri 6b3adf4831 Don't use the diskette icon for export attachment at all 2021-03-13 18:56:26 +01:00
Hocuri bf86badb1c Allow to share media from Delta Chat 2021-03-13 18:56:26 +01:00
Asiel Díaz Benítez beee60d6a7 implement sticker visualization (#1823)
Sticker picker is not implemented, just receiving(from DC Desktop, bots or future DC versions) and forwarding stickers
(code adapted from Signal)
2021-03-10 10:55:50 +01:00