Skip to content

Commit 898c6ea

Browse files
committed
allow deleting teams chat msgs
1 parent 3cad567 commit 898c6ea

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
- Add the ability to load Excel files (with extension .xls or .xlsx) to the `ms_drive_item$load_dataframe()` method. This requires the readxl package to be installed.
77
- Fix a bug in downloading shared files in business SharePoint/OneDrive (#189)
88

9+
## Teams
10+
11+
- Enable deleting of chat messages, now that this functionality is exposed in the underlying Graph API (#166).
12+
913
## Planner
1014

1115
- Fix a bug in the `ms_plan$get_details()` method.

R/ms_chat_message.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' - `properties`: The item properties (metadata).
1111
#' @section Methods:
1212
#' - `new(...)`: Initialize a new object. Do not call this directly; see 'Initialization' below.
13-
#' - `delete(confirm=TRUE)`: Delete this message. Currently the Graph API does not support deleting Teams messages, so this method is disabled.
13+
#' - `delete(confirm=TRUE)`: Delete this message.
1414
#' - `update(...)`: Update the message's properties (metadata) in Microsoft Graph.
1515
#' - `do_operation(...)`: Carry out an arbitrary operation on the message.
1616
#' - `sync_fields()`: Synchronise the R object with the message metadata in Microsoft Graph.
@@ -107,11 +107,6 @@ public=list(
107107
self$get_reply(message_id)$delete(confirm=confirm)
108108
},
109109

110-
delete=function(confirm=TRUE)
111-
{
112-
stop("Deleting Teams messages is not currently supported", call.=FALSE)
113-
},
114-
115110
print=function(...)
116111
{
117112
cat("<Teams message>\n", sep="")

0 commit comments

Comments
 (0)