Commit e9e426d
authored
refactor(chat): streamline message parsing logic (#1414)
Move message parsing to get_messages, removing redundant parse calls
from get_block, get_message, add_message, and remove_message. This
simplifies the code and ensures messages are always parsed when
retrieved, reducing unnecessary parsing and improving performance.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>1 parent c15f65e commit e9e426d
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| |||
228 | 227 | | |
229 | 228 | | |
230 | 229 | | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
| |||
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 501 | + | |
506 | 502 | | |
507 | 503 | | |
508 | 504 | | |
| |||
550 | 546 | | |
551 | 547 | | |
552 | 548 | | |
553 | | - | |
554 | | - | |
555 | 549 | | |
556 | 550 | | |
557 | 551 | | |
| |||
0 commit comments