Commit log

dd3c912 Allow build to pass without secrets

Stephen Paul Weber created

10521d1 fix ConcurrentModificationException

Click to expand commit body
ConcurrentModificationException can only be triggered by (a) obviously,
multiple threads modifying the same collection or (b) one thread which
modifies the thread while iterating over it (see [here](https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html)). Assuming that `systemTags` doesn't alias `this.systemTags`, it must be (a). Also, the stacktrace we got comes from inside `old.equals`. consider:
```java
final JSONArray old = this.systemTags;
this.systemTags = new JSONArray();
final JSONArray old = this.systemTags;
...
this.systemTags.put(...)
!old.equal(...)
```
and we get ConcurrentModificationException bc Thread 2's `old` alias's
thread 1's `this.systemTags`

The patch fixes this bug by making suring that no references escape
function scope, so no aliasing can occur.

Phillip Davis created

8bc6439 Default to jabber.fr for fallback

Stephen Paul Weber created

d8152c4 Never fall back to iterative DNS for DNSSEC

Click to expand commit body
This can work around if your local resolver strips DNSSEC, but also it
means resolution is bonkers slow and might even take forever / fail if
DNS queries are blocked (because you're on TOR VPN or similar). So if
recursive DNSSEC fails, just fail DNSSEC and fall back to regular DNS lookups.

Stephen Paul Weber created

d0488fb Need to put this file in the source dir

Stephen Paul Weber created

8518d6a add wasm extension and application/wasm MIME

Phillip Davis created

26eabc6 Swap play apk for free bundle

Stephen Paul Weber created

b69787c Silly hack to render code tags at all

Stephen Paul Weber created

0c62120 fix crash from non-existant notification channel

Click to expand commit body
ticket: https://todo.sr.ht/~singpolyma/soprani.ca/502

Phillip Davis created

c41c023 Use less quote for reaction fallback

Stephen Paul Weber created

0a3a86a Put blank line after fallback quote

Stephen Paul Weber created

2ee0fee EmojiSearch.addEmoji fixes CustomEmoji shortcodes

Click to expand commit body
- now `EmojiSearch.emoji` is truly immutable, in the sense that its
members are not mutated after being inserted.
- attempt to fix: https://todo.sr.ht/~singpolyma/soprani.ca/473

Phillip Davis created

b05fdb5 if setAvatar to null, dont check blocked media

Click to expand commit body
codepath is deleteAvatar, which is setAvatar(from, null)

Phillip Davis created

eba6c51 Use correct size for all body elements

Stephen Paul Weber created

e067ced Also check for abilities on bare jid

Click to expand commit body
If we have them

Stephen Paul Weber created

cbdb5ca Match text sizes from new snikket

Stephen Paul Weber created

cafbf17 dont try to load messages if the activity is null

Phillip Davis created

b156e93 Make default option look less like a header

Stephen Paul Weber created

37c5e43 use synchronously initialized activity

Click to expand commit body
fixes NPE when using 'Return to ongoing call' context button

Phillip Davis created

979ba82 add log to unexpected BinderProxy exception

Phillip Davis created

4985523 Add some more UI around call failures

Stephen Paul Weber created

f6802e0 add fitsSystemWindows to activity_webxdc_store.xml

Phillip Davis created

b18cb97 Upgrade sentry for the 16kb problem

Stephen Paul Weber created

47b611d defer account cancellation to another thread

Click to expand commit body
otherwise causes NetworkOnMainThreadException

Phillip Davis created

58d6ff8 kill MAM queries for blocked convos

Phillip Davis created

5059358 fix NPE by refactoring onClick

Phillip Davis created

6065d1b use error-catching version of openInputStream

Phillip Davis created

24c6c03 unhide ImportBackupActivity ActionBar

Phillip Davis created

a8324a0 try-catch `new ToneGenerator` and log errors

Click to expand commit body
trouble reproducing reports of failure stemming from
`WebRTCWrapper.applyDtmfTone` failing on this constructor, specifically:
```
at android.media.ToneGenerator.native_setup(Native Method)
at android.media.ToneGenerator.<init>(ToneGenerator.java:751)
```
so we log the error for next time and catch it to prevent crashing, and
instead just dont play the tone

Phillip Davis created

bcbafc9 fix TOCTOU in command pager

Click to expand commit body
- in CommandSession constructor, must construct a hard reference to the
  ViewPager to make garbage collection impossible until at least
  `getContext()` is called
- in setupLayoutManager, current code doesn't have a case for if mPager
  is null. Probably we wouldn't be there anyway, but in any case the
  `ctx` parameter should be equivalent, i.e., it should refer to the
  ActivityContext, so we use that instead of going through mPager

Phillip Davis created

815d67b do precedence right

Phillip Davis created

c2c37f2 fix(menu): return true from menu handlers

Click to expand commit body
ConversationFragment.onOptionsItemSelected was using break statements
instead of return true for handled menu items. This caused the method to
return false (from super.onOptionsItemSelected), indicating the event was
not handled.

On tablets with split-pane view, this caused menu events to bubble from the
temporary fragment in ConversationsOverviewFragment to the visible
ConversationFragment, resulting in duplicate actions. For example, selecting
"Contact details" from the context menu would open contact details twice:
first for the selected conversation (correct), then for the currently active
conversation (wrong), with the wrong one appearing on top.

Fixed by changing all break statements to return true, matching the pattern
already used in onContextItemSelected. This also adds a missing return after
action_block_avatar which was previously falling through to the next case.

Fixes: https://todo.sr.ht/~singpolyma/soprani.ca/437

Phillip Davis created

da4c216 filter accts in ConversationsOverviewFragment

Phillip Davis created

b11972b escape jids in more places

Phillip Davis created

d675927 dont timeout w/o ack

Phillip Davis created

575cfdf declare ImportBackupService in android manifest

Click to expand commit body
was causing all backup restores to fail,
service was never even created

Phillip Davis created

b947940 guard against null url in oob stanza

Click to expand commit body
previously, would crash whole app

`if (url != null) {` makes it seem like we were
fine with the subsequent code not running anyway

Phillip Davis created

4fa90ed Update for 16KB alignment

Stephen Paul Weber created

95bcad4 Merge branch '442-connect-via-tor-not-working' of https://git.secluded.site/cheogram-android

Click to expand commit body
* '442-connect-via-tor-not-working' of https://git.secluded.site/cheogram-android:
  fix(settings): enable Tor conns for other flavs

Stephen Paul Weber created

011e884 fix(settings): enable Tor conns for other flavs

Click to expand commit body
Remove QuickConversationsService.isConversations() checks from
AppSettings.java (isUseTor, isExtendedConnectionOptions) to allow Tor
connections in non-Conversations flavours.

I tested by installing with a modified package ID, adding a new account,
enabling the Tor toggle, and seeing that 0 out of 1 accounts were
connected because Tor is unavailable. After installing/enabling Orbot
and waiting a bit, I had to toggle the account to get it to try again.

Fixes: https://todo.sr.ht/~singpolyma/soprani.ca/442

Amolith created

8863066 don't care abt old pw if didUnlock

Phillip Davis created

e68d564 Don't set to UTF8 if it's just ascii

Click to expand commit body
for better compatibility with scanners

Stephen Paul Weber created

f240e52 Show self in participants

Stephen Paul Weber created

3984516 See own hats

Stephen Paul Weber created

37c504b Change button labels to make function more clear

Stephen Paul Weber created

8780945 Side by side looked dumb on narrow devices

Stephen Paul Weber created

7e157f5 Workaround for snikket sending unavailable

Stephen Paul Weber created

957df4f Fix account colors on item lists

Click to expand commit body
including startconversation

Stephen Paul Weber created

c6be9b6 fix Pre-Authenticated In-Band Registration

Daniel Gultsch created

2fc3c19 Fix more insets

Stephen Paul Weber created