mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	message_edit: Avoid confusing notice editing wildcard mention messages.
It's highly confusing to suggest to a user that we'll send a second notification to all users when that's not the case. Fixes #25507.
This commit is contained in:
		@@ -907,6 +907,8 @@ export function save_message_row_edit($row) {
 | 
			
		||||
        changed = old_content !== new_content;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const already_has_wildcard_mention = message.wildcard_mentioned;
 | 
			
		||||
    if (!already_has_wildcard_mention) {
 | 
			
		||||
        const wildcard_mention = util.find_wildcard_mentions(new_content);
 | 
			
		||||
        const is_stream_message_mentions_valid = compose_validate.validate_stream_message_mentions(
 | 
			
		||||
            stream_id,
 | 
			
		||||
@@ -916,6 +918,7 @@ export function save_message_row_edit($row) {
 | 
			
		||||
        if (!is_stream_message_mentions_valid) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    show_message_edit_spinner($row);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user