diff --git a/UnitTests/Sources/ComposerToolbarViewModelTests.swift b/UnitTests/Sources/ComposerToolbarViewModelTests.swift
index 86834a97a..2712ea209 100644
--- a/UnitTests/Sources/ComposerToolbarViewModelTests.swift
+++ b/UnitTests/Sources/ComposerToolbarViewModelTests.swift
@@ -136,7 +136,8 @@ class ComposerToolbarViewModelTests: XCTestCase {
let suggestion = SuggestionItem.user(item: .init(id: "@test:matrix.org", displayName: "Test", avatarURL: nil, range: .init()))
viewModel.context.send(viewAction: .selectedSuggestion(suggestion))
- XCTAssertEqual(wysiwygViewModel.content.html, "Test ")
+ // The display name can be used for HTML injection in the rich text editor and it's useless anyway as the clients don't use it when resolving display names
+ XCTAssertEqual(wysiwygViewModel.content.html, "@test:matrix.org ")
}
func testAllUsersSuggestion() {