urbit / landscape

Product board for Landscape.
20 stars 6 forks source link

Error when trying to share private profile in groups #1148

Open kjekac opened 3 years ago

kjekac commented 3 years ago

Describe the bug When trying to share my private profile with groups, nothing happens in the interface and the browser console emits an error.

To Reproduce Steps to reproduce the behavior:

  1. Go to any chat in any group with which you haven't shared your private profile.
  2. Open the browser console.
  3. Click on the blue "Share"-button in the banner at the top of the chat asking "Share private profile?".
  4. Get the following errors in the console:
Urbit.ts:222 gall: poke-as cast fail :contact-store [a=%json b=%contact-update-0]
/lib/resource/hoon:<[52 3].[56 5]>
[%dejs %resource]
/lib/resource/hoon:<[51 3].[56 5]>
[%key 'group']
[%key 'allow']
/lib/contact-store/hoon:<[113 9].[113 21]>
/lib/contact-store/hoon:<[113 5].[176 7]>
/lib/contact-store/hoon:<[112 5].[176 7]>
/sys/vane/gall/hoon:<[868 27].[868 45]>

asyncToGenerator.js:6 Uncaught (in promise) undefined
n @ asyncToGenerator.js:6
s @ asyncToGenerator.js:29
Promise.then (async)
n @ asyncToGenerator.js:13
u @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ ShareProfile.tsx:42
u @ react-dom.production.min.js:14
p @ react-dom.production.min.js:14
(anonymous) @ react-dom.production.min.js:14
y @ react-dom.production.min.js:15
oe @ react-dom.production.min.js:52
re @ react-dom.production.min.js:51
ue @ react-dom.production.min.js:52
pe @ react-dom.production.min.js:56
O @ react-dom.production.min.js:287
Z @ react-dom.production.min.js:19
Ve @ react-dom.production.min.js:70
Ue @ react-dom.production.min.js:69
e.unstable_runWithPriority @ scheduler.production.min.js:19
Fr @ react-dom.production.min.js:122
_ @ react-dom.production.min.js:287
Qe @ react-dom.production.min.js:68

Expected behavior I expect the banner to disappear and for my avatar to change in the current group.

Desktop:

jamesacklin commented 2 years ago

We have plans to remove the "Share private profile?" banner anyways, but will make sure that this error doesn't crop up either way.