Commit d0b18bb
authored
fix(notifications): resolve contact info from chat ID when group key is not E.164 (#902)
The backend changed group_key from an E.164 phone number to a base64-encoded chat ID. This caused applyContactChatStyle to produce an empty sender name and no contact photo, since the E.164 extraction (startsWith("+")) failed silently.
Fall back to contactCoordinator.lookupContactByDmChatId to recover the sender's E.164 from the local contact mapping, restoring name resolution, photo loading, and formatted phone fallback.
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 86c65eb commit d0b18bb
1 file changed
Lines changed: 5 additions & 2 deletions
File tree
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| 192 | + | |
191 | 193 | | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
0 commit comments