Improve DialogParticipantStatus logging.
This commit is contained in:
parent
e86b323de9
commit
a8e8136f34
@ -532,6 +532,9 @@ StringBuilder &operator<<(StringBuilder &string_builder, const DialogParticipant
|
|||||||
return string_builder;
|
return string_builder;
|
||||||
case DialogParticipantStatus::Type::Administrator:
|
case DialogParticipantStatus::Type::Administrator:
|
||||||
string_builder << status.get_administrator_rights();
|
string_builder << status.get_administrator_rights();
|
||||||
|
if (status.can_be_edited()) {
|
||||||
|
string_builder << "(can_be_edited)";
|
||||||
|
}
|
||||||
if (!status.rank_.empty()) {
|
if (!status.rank_.empty()) {
|
||||||
string_builder << " [" << status.rank_ << "]";
|
string_builder << " [" << status.rank_ << "]";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user