You are reading content from Scuttlebutt
@cel %RglDlcmvc3jp7M/BdMLA63St7j2/6eEFoKFIYX+ZyzQ=.sha256
{
  "type": "pull-request",
  "project": "%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256",
  "repo": "%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256",
  "text": "**Enable private messages in light client**\n\nI commented out the line saying private messages are disabled, and it works. The private message view just reads the log and attempts to decrypt messages, so it doesn't rely on sbot's indexing. Was it disabled for another reason that I am not noticing?",
  "mentions": [],
  "branch": "master",
  "head_repo": "%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256",
  "head_branch": "privmsgs"
}
@Dominic %h1v/Ug747krp1098TedoGp0d9B9V6VoxlpFbsEDC0+k=.sha256

private messages will work in the /private feed, but not in threads, because that requires indexes.
but, I guess we could make the private threads come purely from the cache, and then we'd be good

@ev %FeAc65PvmYXuvWrbIhNpMc2I8+dYC+Nxk+3Me2DgexQ=.sha256

@dominic and I talked about this behind the scenes, and there are two problems when you use a remote server.

  1. Threads don't work
  2. The entire /private pull-scroll loads

Other than that it private messages work fairly well in the lite client. I've turned private messages on when I send people lite client invites from my pubs.

There are no issues using the lite client on your local.

@cel %dpmNuyKTF49SJ5pwkOb3Xo9FCfae9r4XzF3T525lfq8=.sha256

Ok, that makes sense, I forgot about threads. I think an intermediate solution then would be to enable /private just for local lite client (i.e. compare sbot's whoami with the local key id). I'll update the PR.

It would be nice for lite clients to work on pubs, but I think I will defer on that for now. Private messages could come from the cache but that would only work if they were loaded during the current page load. I think the full solution would be to index the log, at least for thread backlinks, and save the results in localStorage.

@ev 2 happens with remote lite client but not local? I wonder why...

@cel %HNRD21xDDhpEfUZubrA+ywZ9TWZMmaMzfi90PK4eA9Y=.sha256
Did a git update
  • Enable private messages in local lite client
@Dominic %nEMQ5Sk4ZyG2iXGdF7HESCGZVzwKQx7NUOlVsMIEEDY=.sha256

@cel yeah, I think that would actually be quite feasible for liteclients, it wouldn't be too much data, if you can only seek back on encrypted messages, and also only until when you joined. might as well store the messages which you could decrypt, though (say, in indexeddb)

@Dominic %l2FGe3mUmxpZeGx0zToRAPEZD2QTEryXpGW2xRdMMjk=.sha256

... because otherwise, you'd have to tell the pub which messages you want, which would effectively leak that you where a recipient in them.

@cel %oiqKkzH8ydjwNDkxHCwKyJDnXRzdqkIM7MMIdeSbCUw=.sha256

@dominic that sounds good. For now, I've updated this branch to enable /private if the client is using the same key as the sbot, as a stopgap to let private messages work on a local lite client.

@Dominic %7NGdKzvHn2RXYQwZw9lnccnGCGQ+p+eDbC6XkYteAgA=.sha256

ah, so is this intended for local use in the browser?

@cel %zxQgB/m9pJCIzHGlDeDuR7XIujTu52AqNg/DtlDPHyM=.sha256

Yes, with the key copied into the browser, for local use. It is useful if the browser client works but one can't or doesn't want to use Electron.

@Dominic %883RIiK8TAmPegYznSjb0ZfwKRv6f7XJoxnrCu6tj4A=.sha256

this is merged now (though %git-ssb didn't seem to register that I merged this PR.

@Dominic %3JXfMpAvZziGFJ1TDewR5HyvHK2lrRY/W9Xe+vzQQQ8=.sha256
{
  "type": "issue-edit",
  "root": "%RglDlcmvc3jp7M/BdMLA63St7j2/6eEFoKFIYX+ZyzQ=.sha256",
  "issues": [
    {
      "link": "%RglDlcmvc3jp7M/BdMLA63St7j2/6eEFoKFIYX+ZyzQ=.sha256",
      "open": false
    }
  ]
}
Join Scuttlebutt now