jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

Logged in - public chat is not displayed #309

Closed jaros1 closed 6 years ago

jaros1 commented 6 years ago

Logged in a MoneyNetwork dev. Expected 2 public chat messages (MoneyNetwork updates) to be displayed in top of chat.

Logged in screenshot from 2018-01-22 11-24-04

Not logged in: screenshot from 2018-01-22 11-26-13

127.0.0.1-1516616794439.log

jaros1 commented 6 years ago

Debugged 1516611263486-1516348492322-1-chat.json processing for logged in user. File is read and 3 messages inserted into JS arrays. Maybe a presentation/filter problem?

Message is loaded and match = true and should be displayed:

jaros1 commented 6 years ago

Resumed comp after suspend. Logged in. Now showing public chat and private chat. todo: check $apply() calls. Maybe missing angularJS UI update.

jaros1 commented 6 years ago

Problem was "files_optional_cache". Was initialized at first page reload (not logged in). Client log in cleared all loaded chat messages but did not clear "files_optional_cache" and public chat messages was not reloaded after client log in.