Improve output of DialogListId to log.
This commit is contained in:
parent
0ed8f95cec
commit
ddf51a45db
@ -120,7 +120,14 @@ struct DialogListIdHash {
|
|||||||
|
|
||||||
inline StringBuilder &operator<<(StringBuilder &string_builder, DialogListId dialog_list_id) {
|
inline StringBuilder &operator<<(StringBuilder &string_builder, DialogListId dialog_list_id) {
|
||||||
if (dialog_list_id.is_folder()) {
|
if (dialog_list_id.is_folder()) {
|
||||||
return string_builder << "chat list " << dialog_list_id.get_folder_id();
|
auto folder_id = dialog_list_id.get_folder_id();
|
||||||
|
if (folder_id == FolderId::archive()) {
|
||||||
|
return string_builder << "Archive chat list";
|
||||||
|
}
|
||||||
|
if (folder_id == FolderId::main()) {
|
||||||
|
return string_builder << "Main chat list";
|
||||||
|
}
|
||||||
|
return string_builder << "chat list " << folder_id;
|
||||||
}
|
}
|
||||||
if (dialog_list_id.is_filter()) {
|
if (dialog_list_id.is_filter()) {
|
||||||
return string_builder << "chat list " << dialog_list_id.get_filter_id();
|
return string_builder << "chat list " << dialog_list_id.get_filter_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user