Commit Graph

1835 Commits

Author SHA1 Message Date
adbenitez cc2e44fb70 Merge remote-tracking branch 'upstream/master' 2021-03-05 18:59:29 -05:00
B. Petersen 6b3caad278 add selected language and rtl to log 2021-03-05 17:30:00 +01:00
B. Petersen c99a1809a1 mark overridden senders in quotes
if the original author of a quote is shown
and known to be overridden,
that should be marked with the character '~'
as for the normal names,
esp. as they are look very similar otherwise,
eg. also bold, also colored.
the missing '~' looks like a bug here.

successor of #1808
2021-03-05 16:46:58 +01:00
Hocuri 5b877ff82a Delete lots of unused code 2021-03-05 16:27:33 +01:00
Hocuri bb4272de9f Fix the image-is-cropped-too-much-bug
fix  #1797

Apparently, we ran into a bug similar to the one described in
https://github.com/bumptech/glide/issues/613#issuecomment-144762087 as
we cropped twice (in addition to the cropping I removed, we also set
`android:scaleType="centerCrop"` in `thumbnail_view.xml`)
2021-03-05 16:27:33 +01:00
B. Petersen 23dedb5a24 remove Android-specific DcContact.getArgbColor() from bindings 2021-03-05 11:28:33 +01:00
B. Petersen 113a6c8f75 remove DcEventCenter from wrapper as it belongs to *.connect 2021-03-05 11:28:33 +01:00
B. Petersen 76ae58a6b3 remove Android references from wrapper and make it standalone usable 2021-03-05 11:28:33 +01:00
adbenitez 08a0baaf1d Merge remote-tracking branch 'upstream/master' 2021-03-01 19:52:03 -05:00
Hocuri 84313bdf4f Call stop_io()/start_io() before/after backup export
should ideally be merged before https://github.com/deltachat/deltachat-core-rust/pull/2255, but that's not too important

I tested key import/export and backup import/export, all work fine.
2021-03-01 14:10:53 +01:00
adbenitez 6a6efde411 tweak AudioCodec 2021-03-01 00:54:29 -05:00
adbenitez adb55fdd68 Merge remote-tracking branch 'upstream/master' 2021-02-26 10:37:51 -05:00
bjoern 05287b50bf remove dead code (#1820)
the number of blocked contacts is just the size of the array returned by getBlockedContacts()
2021-02-22 16:24:49 +01:00
adbenitez e5c191c6e8 Merge remote-tracking branch 'upstream/master' 2021-02-22 00:18:08 -05:00
cyBerta 997040d5d6 Merge pull request #1792 from deltachat/emojis_on_map
show emojis on map
2021-02-17 21:27:14 +01:00
adbenitez aeb73350a1 Merge remote-tracking branch 'upstream/master' 2021-02-16 15:54:59 -05:00
cyberta 80ca47fb91 emoji bitmap size depends on passed scale parameter 2021-02-16 13:13:47 +01:00
cyberta 5a5abaffe4 adapt indentation 2021-02-15 22:32:31 +01:00
cyberta 4064f3a30b Don't use AsyncTask class to generate emoji bitmaps, it's deprecated now. Pass emoji scaling factor instead of hard-coding it 2021-02-15 20:04:40 +01:00
cyberta cae1c82a7f avoid that POI emoji icon disappears if info window appears 2021-02-15 16:03:35 +01:00
cyberta ac88aa2419 rename parameter to contextualize input in DataCollectionTask 2021-02-15 14:40:31 +01:00
cyberta 363d92cedb make reference to running collection tasks thread safe 2021-02-15 14:40:31 +01:00
cyberta d68095eca7 show emojis on map 2021-02-15 14:40:31 +01:00
cyberta 9b42940dea handle null location more gracefully 2021-02-15 12:08:13 +01:00
cyberta c17e7f87a7 don't use cached first location fixes that are older than 2 minutes 2021-02-15 12:02:01 +01:00
B. Petersen 95b605e331 mark overridden names by a "~" in the bubbles
this is just a very simple approach to move forward.

to mark overridden names, a "~" is prefixed.

the idea with using a dedicated color for these names:
as we do not really know
if the address is a generic sender address or belongs to the user,
it makes sense to keep the color used for the name and do not use a
dedicated grey or so.

i think, it is not even worth to detect that better:
it is pretty nice to have senders in mailinglist marked nicely,
all the time.

currently, the "~" is only added to the bubbles - it is not there
in the chatlist-summary (that would needed to be done in core)
and also not in forwarded by, notifications, clipboard etc. i'd say currently,
this is not needed, however, with the current approach it would be doable
(if we mark possible impersonation by colors or icons that may be
much more complicated)

adaption on other uis would also be pretty simple with this approach,
and imho, this `~Max Mustermann` looks pretty nicely
and even intuitive in a way.

drawback of the approach is that user may user `~`
as the first character of their names, we could target that by
adapting dc_msg_get_displayname() in the core, if we want to keep this approach,
however, maybe it is also not worth, the "~" is more a flaw than a feature,
also that would result to "~~Name" in the bubbles.
i do not see how that can be used to trick users when beeing added.
names as "foo 🔒" might be more dangerous here, when it comes to trick users.
2021-02-14 22:52:33 +01:00
adbenitez e3b4775c73 Merge remote-tracking branch 'upstream/master' 2021-02-11 01:28:38 -05:00
Hocuri 3b8f3e7628 Show the correct sender name in mailing list messages 2021-02-10 21:33:18 +01:00
adbenitez 7228413088 Merge remote-tracking branch 'upstream/master' 2021-02-10 14:33:26 -05:00
B. Petersen 097da7c165 show name of forwarded in groups, keep title of forwarded messages in grey 2021-02-10 15:50:10 +01:00
adbenitez 0777ffc503 Merge remote-tracking branch 'upstream/master' 2021-02-07 23:31:00 -05:00
bjoern c814885f5c mailinglists3 (#1781)
* Adapt to mailing lists

* Change the question if this is a mailing list (untested)

* rm unused fn

* Adapt to getSenderName -> getOverrideSenderName (untested)

* Use dc_msg_get_sender_first_name() because sometimes the first name was not correctly shown in mailing lists

* Don't let the user modify mailing list groups

* Fix crash

* Make Unnamed newsletter translatable, make the subtitle of mailing lists "Mailing list"

* tweak and hide some controls for mailing lists

* Update src/com/b44t/messenger/DcChat.java

Co-authored-by: bjoern <r10s@b44t.com>

* adapt to new dc_msg_get_real_chat() api, remove dc_msg_get_sender_first_name()

* remove now dead code

* add mailing list name to contact-request-question

move question-creation to a helper class
to avoid duplicated code.

* fix DcMsg.getOverrideSenderName()

* adapt to new dc_decide_on_contact_request() api

* re-allow changing name+image for mailinglists, see recent discussions on PRs

* remove memberlist- and settings-tab from mailinglist profile until there is some use for them

* adapt to new DC_CHAT_TYPE_MAILINGLIST type

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-02-07 23:39:48 +01:00
adbenitez 96271b367e Merge remote-tracking branch 'upstream/master' 2021-02-07 15:13:44 -05:00
B. Petersen 9f2be9c56c use dc_get_chat_encr_info() where useful 2021-02-07 20:32:51 +01:00
B. Petersen 44b0739f6c make profile-menu easier editable, show 'Encryption' item also in groups 2021-02-07 20:32:51 +01:00
Hocuri b645dc60a0 Improve performance and make sure that there is no race condition
add a static boolean doReinitializeDraft that is set to true in onPause() if this activity was started using startActivityForResult(). in onResume(), do if(doReinitializeDraft) { initializeDraft(); }.
2021-02-05 22:32:50 +01:00
Hocuri cd5f0c212c Fix disappearing drafts
Some people reported that drafts were disappearing, and I found a way to
reproduce it (my interpretation in brackets):
- Open Saved Messages chat, could be any other chat too
- Go to another app and share to DC
- In DC select Saved Messages
  - (as sharing is done using startActivityForResult(), a second
  ConversationActivity is created without affecting the existing one)
- Leave DC. (The second ConversationActivity will correctly save its
draft to the db)
- Open DC again from the "Recent apps". (The first ConversationActivity
will be loaded. It will not know that there is a newer draft and still
show the old draft, or nothing if there was none. When it's closed, it
will overwrite the draft)

I came to this conclusion by logging all writes to the draft in the db.
Also, when I set `REQUEST_RELAY` to -1 (`startActivityForResult(intent,
-1) will behave the same as `startActivity(intent)`) (but that's not a
solution, sometimes we need startActivityForResult(), see e.g.
https://github.com/deltachat/deltachat-android/pull/1412)

What's still a little weird: I tried replacing all calls to
`startActivityForResult(-intent for ConversationActivity-)` with
startActivity(), and the issue didn't go away. Apparently it's only
enough if all calls are replaced, which is the same as setting
`REQUEST_RELAY` to -1. Maybe it's enough if one activity in the call
chain is called using startActivityForResult().

The call to `initializeDraft()` makes the activity start & resume 2-3ms
slower, which is probably acceptable.

While going back and forth with activities & sharing, I also encountered
some more bugs (without trying to reproduce them), but they are not too
annoying (as opposed to losing your draft) and I'm hesitant to changing
the activity-switching logic too much as it is so easy to just break
things again.
2021-02-05 22:32:50 +01:00
link2xt 9e610e5d4b Replace 4 weeks option with 5 weeks option
While 4 weeks always fits in a month,
5 weeks (35 days) always covers at least a month,
so it can be used in a situation where messages are required to
be stored for a month.
2021-02-03 13:34:05 +03:00
adbenitez fb0beb77f6 undo video tweaks 2021-02-01 19:34:11 -05:00
adbenitez 34df284caf Merge branch 'master' of github.com:adbenitez/deltalab-android 2021-01-31 02:33:10 -05:00
adbenitez c9e5d216f0 Merge remote-tracking branch 'upstream/master' 2021-01-31 02:32:52 -05:00
B. Petersen 90bb1eb559 add comments on ephemeral-timer-indexes 2021-01-31 00:45:13 +03:00
link2xt f155757cee Change list of ephemeral message options
Also match unknown options to some known option, not "disabled".
2021-01-31 00:45:13 +03:00
david bb210d9751 Some fixes from the zhv 1.5.1 code that does it get the same theme of Delta 2021-01-29 13:07:12 -05:00
B. Petersen f593f27d98 harden WebView settings 2021-01-29 15:25:23 +01:00
B. Petersen 74cdd85815 add pinch-to-zoom options to message-html-view 2021-01-29 15:25:23 +01:00
bjoern 8d9c02dd7a add option to view full (html) message (#1763)
* add get-mime-original apis

* remove unused control

* add 'Show full message' buttons

* split reusable WebViewActivity from LocalHelpActivity

* add FullMsgActivity

* load html via AsyncTask

* adapt to changed api

* handle mailto:-links in WebView

* block loading remote images by default, add user setting always/once/never

* do not hide 'Once' button in always-mode, playing around a day with hidden 'Once' that looks more like a bug :)

* wording: as 'Always' affects all messages, it is better to speak of multiple senders

* wording: use 'Load remote images'

this makes it easier for the user to find the option
if one sees, images are missing in the document.

* wording: shorten text.

* wording: change 'may' to 'can'. 'may' sounds a bit as if someone allows this.

* Don't use AsyncTask

* check 'once' if appropriate

* use lite-colored checkbox-emoji in dark-theme

* add comment about missing error logging

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-01-28 22:53:15 +01:00
adbenitez a7952dbdf7 Merge branch 'lite' 2021-01-26 14:54:55 -05:00
B. Petersen 3914bf7ff4 adapt to removed dc_contact_get_first_name() api
use dc_contact_get_display_name() instead
2021-01-23 19:52:23 +01:00
adbenitez 005b5a58bd Merge branch 'lite' 2021-01-16 12:49:39 -05:00