mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-08-31 08:12:21 +00:00
cleint side crypto refinements
This commit is contained in:
parent
8aff882821
commit
a8de307740
@ -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",
|
||||
|
||||
//alert("got event")
|
||||
|
||||
this.updatePosts(-1);
|
||||
this.updatePosts();
|
||||
|
||||
},
|
||||
render: function() {
|
||||
@ -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();
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -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);
|
||||
|
||||
});
|
||||
|
@ -87,7 +87,7 @@ module.exports = Conversation = React.createClass({
|
||||
|
||||
//alert("got event")
|
||||
|
||||
this.updatePosts(0);
|
||||
this.updatePosts();
|
||||
|
||||
},
|
||||
render: function() {
|
||||
|
@ -65,7 +65,7 @@ module.exports = Hashtag = React.createClass({
|
||||
|
||||
//alert("got event")
|
||||
|
||||
this.updatePosts(-1);
|
||||
this.updatePosts();
|
||||
|
||||
},
|
||||
render: function() {
|
||||
|
@ -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…
x
Reference in New Issue
Block a user