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

Freeze chat UI while approving incoming money transaction #275

Open jaros1 opened 6 years ago

jaros1 commented 6 years ago

Prevent actions like second approval, reject, edit, delete message. And do not allow two appproval

127.0.0.1-1511450634124.log

jaros1 commented 6 years ago

Do not send two identical pubkeys message to other wallet. Worst case if all JS checks fails: 2 pubkeys messages => 2 w2_check_mt messages => 2 w2_start_mt messages => double transaction. There must be xxx_sent_at timestamp for each step in process.

jaros1 commented 6 years ago

Added JS code in W2 to prevent double approval of an incoming money transaction. Disabled some functions while approving money transaction. Must also add some status info in MN chat to disable buttons. internal status messages from w2 session or read files with status info

jaros1 commented 6 years ago

todo: add state info to money transaction message. blank, approved, rejected, edited

jaros1 commented 6 years ago

There has been added money transaction status info from two wallets to chat msg. But generic text messages. Cannot be used as money transaction state (blank, approved, rejected, edited etc).