mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: send full message without trimming to the addon event (#8230)
Address https://github.com/Unleash/unleash/pull/8219#discussion_r1772884465
This commit is contained in:
		
							parent
							
								
									72bdce98de
								
							
						
					
					
						commit
						5ac32b3713
					
				@ -75,7 +75,8 @@ export default class SlackAddon extends Addon {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        const { text: formattedMessage, url: featureLink } =
 | 
					        const { text: formattedMessage, url: featureLink } =
 | 
				
			||||||
            this.msgFormatter.format(event);
 | 
					            this.msgFormatter.format(event);
 | 
				
			||||||
        const text = formattedMessage.substring(0, 3000);
 | 
					        const maxLength = 3000;
 | 
				
			||||||
 | 
					        const text = formattedMessage.substring(0, maxLength);
 | 
				
			||||||
        const requests = slackChannels.map((channel) => {
 | 
					        const requests = slackChannels.map((channel) => {
 | 
				
			||||||
            const body = {
 | 
					            const body = {
 | 
				
			||||||
                username,
 | 
					                username,
 | 
				
			||||||
@ -149,7 +150,7 @@ export default class SlackAddon extends Addon {
 | 
				
			|||||||
                url,
 | 
					                url,
 | 
				
			||||||
                channels: slackChannels,
 | 
					                channels: slackChannels,
 | 
				
			||||||
                username,
 | 
					                username,
 | 
				
			||||||
                message: text,
 | 
					                message: `${formattedMessage}${text.length < formattedMessage.length ? ` (trimmed to ${maxLength} characters)` : ''}`,
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user