github.com/status-im/status-go@v1.1.0/deprecation/protocol.go (about)

     1  package deprecation
     2  
     3  const (
     4  	ChatProfileDeprecated  = true
     5  	ChatTimelineDeprecated = true
     6  )
     7  
     8  func AddChatsCount(count int) int {
     9  	var add = 0
    10  	if !ChatProfileDeprecated {
    11  		add++
    12  	}
    13  	if !ChatTimelineDeprecated {
    14  		add++
    15  	}
    16  	return count + add
    17  }
    18  
    19  func AddProfileFiltersCount(count int) int {
    20  	if ChatProfileDeprecated {
    21  		return count
    22  	}
    23  	return count + 1
    24  }
    25  
    26  func AddTimelineFiltersCount(count int) int {
    27  	if ChatTimelineDeprecated {
    28  		return count
    29  	}
    30  	return count + 1
    31  }