{"action":"closed","issue":{"url":"https://api.github.com/repos/irungentoo/toxcore/issues/859","labels_url":"https://api.github.com/repos/irungentoo/toxcore/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/irungentoo/toxcore/issues/859/comments","events_url":"https://api.github.com/repos/irungentoo/toxcore/issues/859/events","html_url":"https://github.com/irungentoo/toxcore/issues/859","id":33670584,"number":859,"title":"we need api to get friend_id from peer_id (in group chat)","user":{"login":"r-ku","id":7602544,"avatar_url":"https://avatars.githubusercontent.com/u/7602544?v=3","gravatar_id":"","url":"https://api.github.com/users/r-ku","html_url":"https://github.com/r-ku","followers_url":"https://api.github.com/users/r-ku/followers","following_url":"https://api.github.com/users/r-ku/following{/other_user}","gists_url":"https://api.github.com/users/r-ku/gists{/gist_id}","starred_url":"https://api.github.com/users/r-ku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-ku/subscriptions","organizations_url":"https://api.github.com/users/r-ku/orgs","repos_url":"https://api.github.com/users/r-ku/repos","events_url":"https://api.github.com/users/r-ku/events{/privacy}","received_events_url":"https://api.github.com/users/r-ku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-16T12:29:45Z","updated_at":"2015-10-01T19:18:15Z","closed_at":"2015-10-01T19:18:15Z","body":"tox really needs such api:\r\n\r\n    int get_friend_from_group_peer(int group_id, int peer_id)\r\n\r\nNow apparently there is no way to figure out which group chat peer is which friend in our contacts. Now imagine chat client that can set custom local alias to contact. There is no way to use that custom alias in group chat. Furthermore there is no way to uniquely identify peer in group chat, because when peers come and leave their ids get reused. Problem here is if client wishes to properly update aliases of message senders in group chat there must be some kind of mapping between peer and message so whenever peer name changes all names next to message can be updated. since peer_id can be taken by other peer at later point it is no longer possible to do this."}}