Fixed clickable SIP URI pattern, added missing tilde

Updated CHANGELOG
This commit is contained in:
Sylvain Berfini 2023-02-02 11:42:04 +01:00
parent 7c3722a90a
commit 4d1adf6227
2 changed files with 15 additions and 1 deletions

View file

@ -16,6 +16,20 @@ Group changes to describe their impact on the project, as follows:
- Replaced voice recordings file name by localized placeholder text, like for video conferences invitations
- Removed jetifier as it is not needed
## [5.0.6] - Unreleased
### Fixed
- Wrong country displayed in assistant after picking it in the list if another country has the same international prefix (such as +1)
- SIP URI clickable pattern missing '~'
- Crash that happens sometimes when CallActivity is destroyed
- Missing ephemeral icon next to send message icon
- Headers colors in IMDN details
- Pixel issue in call quality indicator 2 icon
### Changed
- Improved incoming call layout when receiving early-media video
- Hidden "Echo Tester" setting unless in debug mode as it can mislead user and isn't useful for end user
## [5.0.5] - 2023-01-19
### Fixed

View file

@ -191,7 +191,7 @@ class ChatMessageData(val chatMessage: ChatMessage) : GenericContactData(chatMes
val spannable = Spannable.Factory.getInstance().newSpannable(content.utf8Text?.trim())
text.value = PatternClickableSpan()
.add(
Pattern.compile("(?:<?sips?:)?[a-zA-Z0-9+_.\\-]+(?:@([a-zA-Z0-9+_.\\-;=]+))+(>)?"),
Pattern.compile("(?:<?sips?:)?[a-zA-Z0-9+_.\\-]+(?:@([a-zA-Z0-9+_.\\-;=~]+))+(>)?"),
object : PatternClickableSpan.SpannableClickedListener {
override fun onSpanClicked(text: String) {
Log.i("[Chat Message Data] Clicked on SIP URI: $text")