Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Andreyev <[email protected]>
  • Loading branch information
a-andreyev committed Apr 22, 2020
1 parent 576581a commit 8e60a8d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/messageschannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,14 @@ void MatrixMessagesChannel::fetchHistory()

void MatrixMessagesChannel::onTypingChanged()
{
if (m_room->usersTyping().isEmpty())
{
for(auto user: m_room->users())
{
if (m_room->usersTyping().isEmpty()) {
for (auto user: m_room->users()) {
const uint handle = m_connection->ensureContactHandle(user->id());
m_chatStateIface->chatStateChanged(handle, Tp::ChannelChatStateActive);
}
return;
}
for(auto user: m_room->usersTyping())
{
for (auto user: m_room->usersTyping()) {
const uint handle = m_connection->ensureContactHandle(user->id());
m_chatStateIface->chatStateChanged(handle, Tp::ChannelChatStateComposing);
}
Expand Down

0 comments on commit 8e60a8d

Please sign in to comment.