Skip to content

Commit

Permalink
UI stub for peer role detection. implement at some later point in tim…
Browse files Browse the repository at this point in the history
…e ...
  • Loading branch information
zoff99 committed Dec 23, 2024
1 parent 17a5700 commit 177341e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ public void bindMessageList(GroupMessage m)
message__text = "Private Message:\n" + m.text;
}

if (m.tox_group_peer_role == ToxVars.Tox_Group_Role.TOX_GROUP_ROLE_FOUNDER.value)
{
// TODO: make something nice looking here // message__text = "*Founder Message*\n" + message__text;
}
else if (m.tox_group_peer_role == ToxVars.Tox_Group_Role.TOX_GROUP_ROLE_MODERATOR.value)
{
// TODO: make something nice looking here // message__text = "+Moderator Message+\n" + message__text;
}

String message__tox_peername = m.tox_group_peername;
String message__tox_peerpubkey = m.tox_group_peer_pubkey;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ public void bindMessageList(GroupMessage m)
message__text = "Private Message:\n" + m.text;
}

if (m.tox_group_peer_role == ToxVars.Tox_Group_Role.TOX_GROUP_ROLE_FOUNDER.value)
{
// TODO: make something nice looking here // message__text = "*Founder Message*\n" + message__text;
}
else if (m.tox_group_peer_role == ToxVars.Tox_Group_Role.TOX_GROUP_ROLE_MODERATOR.value)
{
// TODO: make something nice looking here // message__text = "+Moderator Message+\n" + message__text;
}

String message__tox_peername = m.tox_group_peername;
String message__tox_peerpubkey = m.tox_group_peer_pubkey;

Expand Down

0 comments on commit 177341e

Please sign in to comment.