Mauro a01f546fb2 Fix extra space in message bubbles after a mention's name loads (#6393)
* Remove the timeline's pill view flushing

MessageTextView is created with UIKit's factory initialiser, which skips
Swift's stored-property initialisers, so its pill view table was always nil
and flushPills never did anything. UIKit already removes old attachment
views when the text is replaced (checked on iOS 18.5, 26.5 and 27).

The rich text composer does leave old pill views behind, so it keeps
registering them. The timeline and the plain composer now implement
registration as a no-op and drop their unused pill view tables.

* Stop adding a timestamp spacer whenever a mention's name loads

When a mention pill's display text changed, MessageText copied the rendered
text, spacer included, back into its source, so another invisible timestamp
spacer was appended and the bubble could grow a line. The text comparison in
updateUIView also never matched while a spacer was reserved (a new spacer is
built every time), so every update rebuilt the text and its pills.

Rebuild the text only when its inputs change, and only invalidate the cached
size when a pill resizes.
2026-10-27 17:21:52 +01:00
2026-07-20 11:16:11 +02:00
2026-10-23 18:02:16 +02:00
2026-07-20 11:16:11 +02:00
2026-10-26 02:16:25 -07:00
2024-09-06 16:34:30 +03:00

Element iOS Matrix room #element-x-ios:matrix.org GitHub

Build Status GitHub release (latest by date)

codecov

Element X iOS

Element X iOS is the next-generation Matrix client provided by Element.

Compared to the previous-generation Element Classic, it is a total rewrite using the Matrix Rust SDK underneath and targeting devices running iOS 18+.

Rust SDK

Element X leverages the Matrix Rust SDK through an FFI layer exposed as a swift package that the final client can directly import and use. We're doing this as a way to share code between platforms, with Element X Android using the same SDK.

Status

This project is actively developed and supported. New users are recommended to use Element X instead of the previous-generation app.

Contributing

Please see our contribution guide.

Come chat with the community in the dedicated Matrix room.

Build instructions

Please refer to the setting up a development environment section from the contribution guide.

Support

When you are experiencing an issue on Element X iOS, please first search in GitHub issues and then in #element-x-ios:matrix.org. If after your research you still have a question, ask at #element-x-ios:matrix.org. Otherwise feel free to create a GitHub issue if you encounter a bug or a crash, by explaining clearly in detail what happened. You can also perform bug reporting (Rageshake) from the Element application by going to the application settings. This is especially recommended when you encounter a crash.

Forking

Please read our forking guide.

Copyright (c) 2025 - 2026 Element Creations Ltd. Copyright (c) 2022 - 2025 New Vector Ltd.

This software is dual licensed by Element Creations Ltd (Element). It can be used either:

(1) for free under the terms of the GNU Affero General Public License (as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version); OR

(2) under the terms of a paid-for Element Commercial License agreement between you and Element (the terms of which may vary depending on what you and Element have agreed to).

Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses.

S
Description
No description provided
Readme AGPL-3.0 152 MiB
Languages
Swift 99.7%
Python 0.1%