talk-android icon indicating copy to clipboard operation
talk-android copied to clipboard

User status icon not showing under main screen

Open AndyXheli opened this issue 3 years ago • 16 comments

Show user status icon under each users icon on main screen.

Please see Android VS iOS

imageimage

AndyXheli avatar Oct 10 '22 14:10 AndyXheli

@andyxheli user status is displayed just fine for me on Android 🤔

AndyScherzinger avatar Oct 11 '22 20:10 AndyScherzinger

@AndyScherzinger Hmm dose it take a bit for the status to update ? i just tested and same results ios shows and android nothing im running v15.0.0 RC1 Android App. I logged in as a test user via web and texted myslef

AndyXheli avatar Oct 11 '22 20:10 AndyXheli

Working on testing on 14.2.0

AndyXheli avatar Oct 11 '22 20:10 AndyXheli

I don't know when the status gets fetched tbh, maybe @mahibi or @timkrueger know this.

AndyScherzinger avatar Oct 11 '22 20:10 AndyScherzinger

I just tested on 14.2.0 and same results. I wish i could give more into :( sorry As of right the test user is logged in via web and i have both IOS and Android open at the same time and no status on the android. wired :( but if click on the username name go to conversation info and scroll to the bottom i see a green icon but nothing under the main screen hope this helps

@AndyScherzinger can we change the label to a bug please since it doesn't seem like an enhancement ?

2022-10-11 15_24_13-Screenshot_20221011_152334 jpg d

AndyXheli avatar Oct 11 '22 20:10 AndyXheli

the status in the conversation list ("main screen") should be updated e.g. when entering the conversation list and by pull down to refresh (spinner icon).

https://github.com/nextcloud/talk-android/blob/master/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.kt#L504

can you confirm the status is still not seen when you refresh the list by pull down @andyxheli ?

mahibi avatar Oct 12 '22 07:10 mahibi

Hi @mahibi yes I tried to refresh by pull down and no luck same issue

AndyXheli avatar Oct 12 '22 11:10 AndyXheli

can you execute this curl request via console?

curl -k -H "OCS-APIRequest: true" -u "yourusername:yourpassword" https://yoururl/ocs/v2.php/cloud/capabilities

just replace yourusername, yourpassword and yoururl

the answer should contain

   <user_status>
    <enabled>1</enabled>
    <supports_emoji>1</supports_emoji>
   </user_status>

where i'm especially interested if there is 1 as value for supports_emoji

mahibi avatar Oct 12 '22 12:10 mahibi

Here's the output <user_status> 1 <supports_emoji>1</supports_emoji> </user_status> <weather_status> 1 </weather_status>

AndyXheli avatar Oct 12 '22 13:10 AndyXheli

@migulen Can you confirm if you're having this issue also ?

AndyXheli avatar Oct 12 '22 15:10 AndyXheli

@andyxheli can you create a testaccount on your server and send url and credentials to marcel . hibbe at nextcloud . com ?

mahibi avatar Oct 12 '22 20:10 mahibi

Just sent the info over :)

AndyXheli avatar Oct 12 '22 20:10 AndyXheli

interim status (thanks to @andyxheli ):

somehow the problem is related to "allow username autocompletion to users within same group". if it's enabled: no status icons in the android talk app if it's disabled: staus icons work in the android talk app for iOS it always works

mahibi avatar Oct 12 '22 21:10 mahibi

The iOS app doesn't break when the autocomplation option is activated because it doesn't use the /ocs/v2.php/apps/user_status/api/v1/statuses endpoint but it uses

"includeStatus=true" when fetching conversations, see https://nextcloud-talk.readthedocs.io/en/latest/conversation/

This solution makes more sense and this should also be used for the android talk app.

Anyway for now this perfectly explains the described issue and https://github.com/nextcloud/server/issues/34570 must be fixed.

For now i will keep this issue open and will have a look to use "includeStatus=true" to show the user statuses

mahibi avatar Oct 13 '22 08:10 mahibi

Nice catch and finding everyone! 🥇

AndyScherzinger avatar Oct 13 '22 09:10 AndyScherzinger

@migulen Can you confirm if you're having this issue also ?

Sorry @andyxheli , I didn't see the notification yesterday, and today I've been a little bit busy.

Yes, I confirm that I don't see "User status icon under each users icon on main screen" (I can see it on "Conversation Info") with "nextcloud-talk android app" v15.0.0-RC4 and v15.0.0-RC5... and I think with all v15.0.0-RCx series. Same happens on a terminal with v14.2.0.

My Nextcloud server is v23.0.10 and Spreed (talk) is v13.0.9.

@mahibi, using an admin account on my nextcloud server, I can't find on "Settings/Administration/Sharing" the option you mentioned:

"somehow the problem is related to "allow username autocompletion to users within same group". " <--Could be it located on other place, or it's labeled different on v23,v24,v25 nextcloud server

I've only this settings in "sharing":

imagen

and checked like that.

I wish it helps too.

Thanks for all.

migulen avatar Oct 13 '22 23:10 migulen