Commit a53a6b2
fix: resolve phone number for LID contacts in getContactModel
- getContact: swap contact.id from LID to phone WID before
getContactModel (restoring old behavior with getPhoneNumber fallback)
- getContactModel: override userid with resolvedPhoneWid when contact
is LID-based, so contact.number returns phone number
- getContacts: fix upstream bug returning unresolved Promises instead
of contact objects (async + Promise.all)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 772b706 commit a53a6b2
1 file changed
Lines changed: 33 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1115 | 1132 | | |
1116 | 1133 | | |
1117 | 1134 | | |
| |||
1121 | 1138 | | |
1122 | 1139 | | |
1123 | 1140 | | |
1124 | | - | |
| 1141 | + | |
1125 | 1142 | | |
1126 | 1143 | | |
1127 | 1144 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1141 | 1160 | | |
1142 | 1161 | | |
1143 | 1162 | | |
| |||
0 commit comments