diff options
| author | levlam <levlam@telegram.org> | 2021-03-15 18:53:51 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-03-15 18:53:51 +0300 |
| commit | 798791223057067befb91e6786fbb0905469c180 (patch) | |
| tree | a4e0e7b911386e0a87a43d2b797f7246ea125581 /td/telegram/GroupCallParticipantOrder.cpp | |
| parent | 1c923154390b82c4c97f5525d039a8eeac69fbfa (diff) | |
Use string as groupCallParticipant.order.
Diffstat (limited to 'td/telegram/GroupCallParticipantOrder.cpp')
| -rw-r--r-- | td/telegram/GroupCallParticipantOrder.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/td/telegram/GroupCallParticipantOrder.cpp b/td/telegram/GroupCallParticipantOrder.cpp index 810d02589..08486c441 100644 --- a/td/telegram/GroupCallParticipantOrder.cpp +++ b/td/telegram/GroupCallParticipantOrder.cpp @@ -6,6 +6,9 @@ // #include "td/telegram/GroupCallParticipantOrder.h" +#include "td/utils/logging.h" +#include "td/utils/misc.h" + #include <limits> #include <tuple> @@ -20,8 +23,9 @@ bool GroupCallParticipantOrder::is_valid() const { return *this != GroupCallParticipantOrder(); } -int64 GroupCallParticipantOrder::get_group_call_participant_order_object() const { - return (static_cast<int64>(active_date) << 32) + joined_date; +string GroupCallParticipantOrder::get_group_call_participant_order_object() const { + return PSTRING() << lpad0(to_string(active_date), 10) << lpad0(to_string(raise_hand_rating), 19) + << lpad0(to_string(joined_date), 10); } bool operator==(const GroupCallParticipantOrder &lhs, const GroupCallParticipantOrder &rhs) { |
