-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Implement new groupchats #1271
base: develop
Are you sure you want to change the base?
Conversation
b079ea2
to
a940466
Compare
snprintf((char *)g->name, sizeof(g->name), "Groupchat #%u", group_number); | ||
g->name_length = strnlen(g->name, sizeof(g->name) - 1); | ||
g->name_length = snprintf(g->name, sizeof(g->name), "Groupchat #%u", group_number); | ||
if (g->name_length >= sizeof(g->name)) { | ||
g->name_length = sizeof(g->name) - 1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/layout/group.c
Outdated
.style_toggle = BM_SWITCH_TOGGLE, | ||
.style_icon_off = BM_NO, | ||
.style_icon_on = BM_YES, | ||
.switch_on = true, //private group by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after //
here.
edit_group_topic; | ||
edit_group_topic, | ||
edit_group_name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small note: If you added the variable between chat_msg_group
and group_topic
, you would have not touched group_topic
needlessly (git blame), and the diff would be more trivial.
And I think I actually prefer not to touch that line.
src/tox.c
Outdated
* param2: audio call or not | ||
* data: group name | ||
*/ | ||
// TODO: readd checking if its an audio call later when it is supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you write re-add
, it won't look like a typo of read
.
src/tox.c
Outdated
free(data); | ||
|
||
if (error) { | ||
LOG_ERR("Toxcore", "Error sending groupchat message... %u" , error); | ||
LOG_ERR("Toxcore", "Error sending message to groupchat %u. Erorr number: %u", param1, error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: s/Erorr/Error/
src/tox_callbacks.c
Outdated
LOG_ERR("Tox Callbacks", "Could not join group with type: %u", type); | ||
LOG_ERR("Tox Callbacks", "Could not join group with type"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you not mean to delete the " with type", too?
Thanks for starting this! Try to keep your log clean from the start. |
This change is