morpho-app / Morpho

Fast, flexible Kotlin Multiplatform client for Bluesky
Apache License 2.0
22 stars 2 forks source link

Wellness features #21

Open mekaem opened 9 months ago

mekaem commented 9 months ago

Toggle to hide engagement metrics

orual commented 9 months ago

Neat idea. Wouldn't be hard to implement.

mekaem commented 9 months ago

Neat idea. Wouldn't be hard to implement.

It's a nice feature that Tusky has. Will take a look at their implementation.

orual commented 9 months ago

The easy way is to just have a conditional display on the element based on the user pref value. I had this working for content hiding based on mod prefs/muting, but iirc it's stubbed out currently. There was a performance impact because how I was doing it was interacting badly with Compose's refresh/layout loop.

orual commented 9 months ago

https://github.com/morpho-app/Morpho/blob/main/app/src/main/java/com/morpho/app/ui/post/FullPostFragment.kt

I deleted it in the normal PostFragment at some point when I was trying to fix stuff being slow, but it's in the FullPostFragment code still.