Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix inserting trailing colon after mention/pill #5830

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

SimonBrandner
Copy link
Contributor

@SimonBrandner SimonBrandner commented Apr 6, 2021

Fixes #15794

Peek 2021-04-07 11-54

This removes the handling of trailing characters from createMentionParts() as we need to determine whether or not to insert the trailing character differently in different situations

I have to admit that my understanding of how the composer works is highly limited but this seems to work and make sense 😅

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@SimonBrandner SimonBrandner marked this pull request as draft April 6, 2021 18:36
This removes the handling of trailing chars from createMentionParts as we need to determine whether or not to insert the trailing char differently in different situations

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@SimonBrandner SimonBrandner marked this pull request as ready for review April 7, 2021 09:53
@t3chguy t3chguy requested a review from a team April 12, 2021 13:55
@t3chguy
Copy link
Member

t3chguy commented Apr 12, 2021

Wonder if it'd be worth looking into element-hq/element-web#4883 at the same time as that will likely overhaul this area

@SimonBrandner
Copy link
Contributor Author

Hmm, maybe later. First, I'd fix the current behaviour and then I'd think about that and also #16682

@t3chguy
Copy link
Member

t3chguy commented Apr 12, 2021

Well element-hq/element-web#16682 is to abolish this behaviour entirely which has pretty much been all but rejected by M

@jryans
Copy link
Collaborator

jryans commented Apr 16, 2021

@bwindels, perhaps you have thoughts on this with your composer hat on?

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems relatively straightforward, thanks!

@turt2live turt2live merged commit 14f1388 into matrix-org:develop Apr 28, 2021
@SimonBrandner SimonBrandner deleted the fix-trailing-colon branch July 3, 2021 10:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not insert trailing colon after mention/pill if cursor is in the middle of a message
4 participants