Limited post send size and post syncing is working for small posts 😮
This commit is contained in:
@@ -642,8 +642,12 @@ class App {
|
||||
// return posts;
|
||||
// return postIDs;
|
||||
});
|
||||
this.peerManager.registerRPC('sendPostForUser', async (requestingPeerID, userID, post) => {
|
||||
console.log.apply(null, log(`[app] sendPostForUser to [${logID(requestingPeerID)}] `, userID, post));
|
||||
this.peerManager.registerRPC('sendPostForUser', async (userID, post) => {
|
||||
console.log.apply(null, log(`[app] sendPostForUser`, userID, post));
|
||||
await this.sync.writePostForUser(userID, post);
|
||||
if (userID === this.userID) {
|
||||
await this.render();
|
||||
}
|
||||
});
|
||||
await this.peerManager.connect();
|
||||
console.log.apply(null, log("*************** after peerManager.connect"));
|
||||
|
||||
Reference in New Issue
Block a user