Commit 56eb58c
committed
refactor: dedupe edit-mode attachment toast message in ChatInput
Extract the thrice-repeated "Attachments cannot be added while editing a
message." toast string into a module-level EDIT_MODE_ATTACHMENT_ERROR_MESSAGE
const so the three guards surface identical copy and cannot drift.
Behavior-preserving.1 parent 7954f5a commit 56eb58c
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| |||
2002 | 2006 | | |
2003 | 2007 | | |
2004 | 2008 | | |
2005 | | - | |
| 2009 | + | |
2006 | 2010 | | |
2007 | 2011 | | |
2008 | 2012 | | |
| |||
2041 | 2045 | | |
2042 | 2046 | | |
2043 | 2047 | | |
2044 | | - | |
| 2048 | + | |
2045 | 2049 | | |
2046 | 2050 | | |
2047 | 2051 | | |
| |||
2219 | 2223 | | |
2220 | 2224 | | |
2221 | 2225 | | |
2222 | | - | |
| 2226 | + | |
2223 | 2227 | | |
2224 | 2228 | | |
2225 | 2229 | | |
| |||
0 commit comments