Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Open convo menu when tapping on chat with deleted account (#4470)

* Open menu on click

* Remove useless util

* Improve label

* s/press/click

* Tweak message

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>

authored by

Eric Bailey
Dan Abramov
and committed by
GitHub
212f5750 c73ad43a

+7 -11
+7 -11
src/screens/Messages/List/ChatListItem.tsx
··· 179 179 (e: GestureResponderEvent) => { 180 180 if (isDeletedAccount) { 181 181 e.preventDefault() 182 + menuControl.open() 182 183 return false 183 184 } else { 184 185 logEvent('chat:open', {logContext: 'ChatsList'}) 185 186 } 186 187 }, 187 - [isDeletedAccount], 188 + [isDeletedAccount, menuControl], 188 189 ) 189 190 190 191 const onLongPress = useCallback(() => { ··· 206 207 accessibilityHint={ 207 208 !isDeletedAccount 208 209 ? _(msg`Go to conversation with ${profile.handle}`) 209 - : undefined 210 + : _( 211 + msg`This conversation is with a deleted or a deactivated account. Press for options.`, 212 + ) 210 213 } 211 214 accessibilityActions={ 212 215 isNative ··· 218 221 } 219 222 onPress={onPress} 220 223 onLongPress={isNative ? onLongPress : undefined} 221 - onAccessibilityAction={onLongPress} 222 - style={[ 223 - web({ 224 - cursor: isDeletedAccount ? 'default' : 'pointer', 225 - }), 226 - ]}> 224 + onAccessibilityAction={onLongPress}> 227 225 {({hovered, pressed, focused}) => ( 228 226 <View 229 227 style={[ ··· 233 231 a.px_lg, 234 232 a.py_md, 235 233 a.gap_md, 236 - (hovered || pressed || focused) && 237 - !isDeletedAccount && 238 - t.atoms.bg_contrast_25, 234 + (hovered || pressed || focused) && t.atoms.bg_contrast_25, 239 235 t.atoms.border_contrast_low, 240 236 ]}> 241 237 <UserAvatar