arrow_back Back to Tickets

Ticket #340e11

completed

Problem

messages the search button doesnt work

Priority

3

Project Name

zfrika

Solution

The issue in your code is that your messages are inconsistent—likely, received messages might be missing a to property, or sent messages might be missing a from property. When JavaScript tries to run .toLowerCase() on a property that doesn't exist, it crashes the whole function. Here is the fixed version of your updateMessagesList method. I have added Optional Chaining (?.) and fallback empty strings || '' to ensure the search is "bulletproof."

Ticket Information

Ticket ID: 6987ff89d50c22b7dc340e11
Date Initiated: 2/8/2026, 3:13:00 AM
Date Resolved: 2/7/2026, 7:31:00 PM
Status: completed
Created: 2/7/2026, 7:14:17 PM
Last Updated: 2/7/2026, 7:32:05 PM