Browse Source

cleint side crypto refinements

master
Julian Steinwachs 8 years ago
parent
commit
a8de307740
  1. 6
      build/app-bundle.js
  2. 8
      build/twister-lib.js
  3. 2
      jsx/other/Conversation.js
  4. 2
      jsx/other/Hashtag.js
  5. 2
      jsx/profile/Timeline.js

6
build/app-bundle.js

@ -1585,7 +1585,7 @@ module.exports = Conversation = React.createClass({displayName: "Conversation", @@ -1585,7 +1585,7 @@ module.exports = Conversation = React.createClass({displayName: "Conversation",
//alert("got event")
this.updatePosts(0);
this.updatePosts();
},
render: function() {
@ -1666,7 +1666,7 @@ module.exports = Hashtag = React.createClass({displayName: "Hashtag", @@ -1666,7 +1666,7 @@ module.exports = Hashtag = React.createClass({displayName: "Hashtag",
//alert("got event")
this.updatePosts(-1);
this.updatePosts();
},
render: function() {
@ -2064,7 +2064,7 @@ module.exports = Timeline = React.createClass({displayName: "Timeline", @@ -2064,7 +2064,7 @@ module.exports = Timeline = React.createClass({displayName: "Timeline",
//alert("got event")
if(this.state.username==event.detail.getUsername()) {
this.addPost(event.detail);
this.updatePosts();
}
},

8
build/twister-lib.js

@ -30052,6 +30052,14 @@ TwisterAccount.prototype._signAndPublish = function(post_ori,cbfunc){ @@ -30052,6 +30052,14 @@ TwisterAccount.prototype._signAndPublish = function(post_ori,cbfunc){
console.log("going to verify ",v)
v.sig_userpost = v.sig_userpost.toString("hex");
if ("sig_rt" in v.userpost) {
v.userpost.sig_rt = v.userpost.sig_rt.toString("hex");
}
thisTorrent._latestId = newid;
Twister.getUser(thisAccount._name)._stream._verifyAndCachePost(v,cbfunc);
});

2
jsx/other/Conversation.js

@ -87,7 +87,7 @@ module.exports = Conversation = React.createClass({ @@ -87,7 +87,7 @@ module.exports = Conversation = React.createClass({
//alert("got event")
this.updatePosts(0);
this.updatePosts();
},
render: function() {

2
jsx/other/Hashtag.js

@ -65,7 +65,7 @@ module.exports = Hashtag = React.createClass({ @@ -65,7 +65,7 @@ module.exports = Hashtag = React.createClass({
//alert("got event")
this.updatePosts(-1);
this.updatePosts();
},
render: function() {

2
jsx/profile/Timeline.js

@ -89,7 +89,7 @@ module.exports = Timeline = React.createClass({ @@ -89,7 +89,7 @@ module.exports = Timeline = React.createClass({
//alert("got event")
if(this.state.username==event.detail.getUsername()) {
this.addPost(event.detail);
this.updatePosts();
}
},

Loading…
Cancel
Save