Adjusted to toxcore's const-correctness fix