zhu3082104111 / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

长按消息还有在StatusActivity里“更多”没有删除选项 #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
长按消息还有在StatusActivity里“更多”对于自己发的消息没有
删除选项

Original issue reported on code.google.com by PHOENIX....@gmail.com on 18 Apr 2011 at 6:06

GoogleCodeExporter commented 8 years ago
发现确实是用户ID比较时问题,
tweet.userId.equals(getApi().getUserId())
相同用户的这两个值可能不一样

Original comment by PHOENIX....@gmail.com on 18 Apr 2011 at 7:25

GoogleCodeExporter commented 8 years ago
目前的Status界面删除按钮是否显示,需要判断当前用户ID是否
等于当前消息的用户ID,
之前的判断方法有误
tweet.userId是当前消息的用户ID,
但是getApi().getUserId()是当前用户登录使用的ID,并不一定是标�
��用户信息里的ID,有可能是邮箱或者手机号
目前我的解决办法是在是否显示删除按钮时去服务器查一下��
�前用户真正的ID(因为目前程序并不记这个ID),这个多少会消�
��网络资源
建议,在登录时记真正的用户ID而不是一个登录帐号。不过这
个涉及到,刚注册的用户并不一定设置ID了,是一个系统ID,
只有在用户设置后,才是永久性ID。或者应该专门记一个登录
帐号(可以是多种值),再记一个用户ID。当然这里涉及到一
个有一定逻辑的设计。

Original comment by PHOENIX....@gmail.com on 18 Apr 2011 at 9:37

GoogleCodeExporter commented 8 years ago
目前的处理方法应该只是暂时的,有一个隐蔽的bug,具体见Ap
plication里getMyselfId()方法说明

Original comment by PHOENIX....@gmail.com on 20 Apr 2011 at 2:14