iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

New player name not displayed after name change #308

Open Treverix opened 11 years ago

Treverix commented 11 years ago

IITC displays the name of a player as "Agent_xxxxx" while, after disabling the plugin, the original intel page shows the new name correctly.

The wrong names have been observed on the portal details page (owner of resonators) and on the chat. It seems like if the player uses IITC to write something on the chat, the "Agent_xxxxx" type name even appears in the comm of the ingress app. After switching to the ingress app, all send comm messages are received from the "new name" again.

jonatkins commented 11 years ago

Names are cached locally in the browser. Currently the only way to clear them is to erase all 'local storage' for IITC. In Chrome this is listed amongst cookies for www.ingress.com - not sure on firefox.

We should, at least, use any sources that include the new name (chat comes to mind) to refresh bad cache entries. Expiring cache entries is a possibility, but would need some internal data format changes.