| 107 | } |
| 108 | |
| 109 | static std::string GetChannelString(const Channel& ch) |
| 110 | { |
| 111 | std::string categBeg = ch.IsCategory() ? "--- " : (ch.m_parentCateg ? " " : ""); |
| 112 | std::string categEnd = ch.IsCategory() ? " ---" : ""; |
| 113 | |
| 114 | std::string mentions = ""; |
| 115 | std::string unreadMarker = ""; |
| 116 | if (ch.WasMentioned()) { |
| 117 | mentions = "(" + toString(ch.m_mentionCount) + ") "; |
| 118 | } |
| 119 | |
| 120 | if (ch.HasUnreadMessages()) { |
| 121 | unreadMarker = " *"; |
| 122 | } |
| 123 | |
| 124 | return categBeg + mentions + ch.GetTypeSymbol() + ch.m_name + categEnd + unreadMarker; |
| 125 | } |
| 126 | |
| 127 | void ChannelViewOld::UpdateAcknowledgement(Snowflake sf) |
| 128 | { |
no test coverage detected