Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
0.0.6-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
badoualy committed Mar 29, 2016
1 parent de0fa7f commit 9fda07c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
allprojects {
version = "0.0.5-beta"
version = "0.0.6-beta"

repositories {
jcenter()
Expand All @@ -25,7 +25,7 @@ subprojects {
}

buildscript {
ext.kotlin_version = '1.0.1'
ext.kotlin_version = '1.0.1-2'
repositories {
mavenCentral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ fun TLAbsMessage.getDate(): Int = when (this) {
}

fun TLAbsMessage.getFromId(): Int = when (this) {
is TLMessage -> fromId
is TLMessageService -> fromId
else -> 0
is TLMessage -> fromId ?: -1
is TLMessageService -> fromId ?: -1
else -> -1
}

fun TLAbsMessage.isUnread(): Boolean = when (this) {
Expand Down

0 comments on commit 9fda07c

Please sign in to comment.