Skip to content

Commit

Permalink
fix wrong own pubkey saved for own NGC messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Aug 28, 2022
1 parent fa90f4b commit 713c996
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
import static com.zoffcc.applications.trifa.MainActivity.tox_group_peer_get_connection_status;
import static com.zoffcc.applications.trifa.MainActivity.tox_group_peer_get_name;
import static com.zoffcc.applications.trifa.MainActivity.tox_group_peer_get_public_key;
import static com.zoffcc.applications.trifa.MainActivity.tox_group_self_get_public_key;
import static com.zoffcc.applications.trifa.MainActivity.tox_group_send_message;
import static com.zoffcc.applications.trifa.MainActivity.tox_max_message_length;
import static com.zoffcc.applications.trifa.TRIFAGlobals.NOTIFICATION_EDIT_ACTION.NOTIFICATION_EDIT_ACTION_REMOVE;
Expand Down Expand Up @@ -729,7 +730,7 @@ synchronized public void send_message_onclick(View view)
{
GroupMessage m = new GroupMessage();
m.is_new = false; // own messages are always "not new"
m.tox_group_peer_pubkey = global_my_toxid.substring(0, (TOX_PUBLIC_KEY_SIZE * 2));
m.tox_group_peer_pubkey = tox_group_self_get_public_key(tox_group_by_groupid__wrapper(group_id)).toUpperCase();
m.direction = 1; // msg sent
m.TOX_MESSAGE_TYPE = 0;
m.read = true; // !!!! there is not "read status" with conferences in Tox !!!!
Expand Down

0 comments on commit 713c996

Please sign in to comment.