`regex.containsMatchIn()` for `.*@room.*` can take significantly longer
than checking for `@room` (some real-world events I was getting took
around 15 seconds with this, significantly slowing down the sync
parsing).
Checking `containsMatchIn()` does not lead to different results when
having leading and trailing stars however, it will match in the same
cases as when these are omitted.
For testing purposes, I sent myself some Lorem Ipsum with 5000 words
(not containing any @room).
Without this change, the regex evaluation takes about 16 seconds.
With this change, the regex evaluation now takes significantly less then
a second.
Change-Id: If3b13304668ad961abb81d5442f37a3a3a1d48b7
* develop: (49 commits)
Update changelog.d/4592.bugfix
Remove jcenter from here, let's see what the CI will say
Common struct for each maven repo
Rename the file to group them
Add changelog file
Revert PR 4592 for devtools
Enhance include groups implementation by decoupling them to a separate file
Cleanup
Legals: improve API to get homeserver terms
Legals: update setting icon
Auto-review
Add a help section in the settings.
Changelog
Color for links
Use same height than the loading item to avoid dynamic resizing
Legals: only display external URLs.
Legals: Move the 2 copyrights items to the new legal screen
Add some space between the 2 TextViews, and improve the layout
Legals: Move the 3 element links to the new legal screen
Rename some classes
...
# Conflicts:
# vector/src/main/res/layout/item_timeline_event_option_buttons_stub.xml
# vector/src/main/res/layout/item_timeline_event_poll_stub.xml
* develop: (21 commits)
Remove automation for new Delight board
Remove automation for old Delight board
Bump gradle from 7.0.3 to 7.0.4
Bump realm-gradle-plugin from 10.8.1 to 10.9.0
Bump libphonenumber from 8.12.38 to 8.12.39
Bump mavericks from 2.4.0 to 2.5.0
removing no longer possible branches
adding a consistent padding to allow message types to avoid touching the side gutter
Upgrade OLM to v3.2.7 and get it from our maven repository.
removing manual send status spacing - it's no longer needed as the send status is always present (but invisible)
removing manual end alignment for voice messages as send status gutter is now always present
forcing the send spacing to always be taking into account - ensures all message lengths are consistent
capping the preview image url based on the height - stops large screens eg tablets from attempting to fill the screen
matching iOS max line rules for the preview description
using themed colours for the close button
limiting title to avoid overlapping with close icon
flattening preview url view layout with custom view to reduce view hierarchy
adding changelog entry
updating url preview to match new designs
removing now longer needed Mode argument
...
# Conflicts:
# vector/src/main/res/layout/item_timeline_event_base.xml
* develop: (319 commits)
Bump dagger from 2.40.4 to 2.40.5
More debouncing
Changelog
I need the view here
clicks() already has debouncing with conflate(), so throttleFirst is not necessary
Use debouncedClicks where applicable
Use `observeViewEvents` facility
private
use != rather that is
Fix waring for state is not dialing or connected
state can also be connected
Add script to compress video and convert to gif file
removing boolean notification version usage
adding changelog entry
removing unused imports and increasing enum allowance
porting the notifications setting version to the vector features
Add warning if unexpected state.
setting login version via typed build config field instead of resources
separating the SSO redirection from the login activities - adds a dedicated routing activity to proxy the uri to the login selected by the feature flags
Removing trailing space
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailAction.kt
# vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt
# vector/src/main/res/layout/item_timeline_event_option_buttons_stub.xml
# vector/src/main/res/xml/vector_settings_labs.xml